WhiteRau Posted December 30, 2011 Share Posted December 30, 2011 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? 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... TIA gang! WR! Link to comment https://forums.phpfreaks.com/topic/254054-continue-unique-session-after-redirect/ Share on other sites More sharing options...
Muddy_Funster Posted December 30, 2011 Share Posted December 30, 2011 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. Link to comment https://forums.phpfreaks.com/topic/254054-continue-unique-session-after-redirect/#findComment-1302561 Share on other sites More sharing options...
scootstah Posted December 30, 2011 Share Posted December 30, 2011 // set session_name session_name($uuid); // get session name session_name(); Link to comment https://forums.phpfreaks.com/topic/254054-continue-unique-session-after-redirect/#findComment-1302565 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.