Jump to content

continue unique session after redirect?


WhiteRau

Recommended Posts

i'm need to retrieve a session after i've collected the data and went to PayPal (...urk...)  i think i'm starting off correctly... but how the hell do i get the session name on the other side?

 

$uuid = uniqid();
session_name = $uuid;
session_start();

//  do some stuff

//  go to PayPal

//  come back from PayPal

....um... now i'm lost!  how do i get the $uuid here??

 

once i come back from PayPal... this is where i get lost.  how do i load a UUID-based session if i can't get the $uuid:shrug:

 

and if there's a better way, by all means let me know!  :)  someone said i could pass the $uuid through PayPal, but i'm not seeing how yet...  :P

 

TIA gang!

 

WR!

Link to comment
https://forums.phpfreaks.com/topic/254054-continue-unique-session-after-redirect/
Share on other sites

put the UUID into the session variable -

$_SESSION['uuid'] = $uuid;

 

then you can call it from the associated pages by adressing the $_SESSION['uuid'] = $newVariableName, as long as every page visited (including the paypal one) has session_start(); at the top of it the session will remain open, failing that you're gonna want to have some cookies.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.