How to retrieve current user session ID to save it to my db and use it laterI want to use the PHP function to mark a goal when a user pays for my product in Paypal because sometimes they close the window and don't go back to the transaction-results page.
So in order to use the PHP function once Paypal sends the notification to my page, I need to store the current user session ID, once it is in the checkout page and before it goes to Paypal to do the payment.
I've tried to do it without the session ID but the goal appears as a new user, called Paypal, which is the Paypal server, of course.
So, how can I retrieve the current user session ID?
Posted Wed Jun 13 2012 5:39am by LuisHerranz