raven74 Posted January 7, 2008 Share Posted January 7, 2008 I use the $_GET method, appending the PHPSESSID onto the links, to pass the session id between pages. I don't like this method because it appends a long md5 code onto the url. Is there any other way to pass session id's between pages apart from the cookie method ? Quote Link to comment https://forums.phpfreaks.com/topic/84911-passing-session-id-between-pages/ Share on other sites More sharing options...
revraz Posted January 7, 2008 Share Posted January 7, 2008 Pass it as a $_SESSION variable? Quote Link to comment https://forums.phpfreaks.com/topic/84911-passing-session-id-between-pages/#findComment-432915 Share on other sites More sharing options...
raven74 Posted January 7, 2008 Author Share Posted January 7, 2008 I'm a noobie especially with sessions... Session is created on pageA and I want to pass it to pageB which basically has not much php code in it. What code do I have to put on each page? On pageB ??: $_SESSION["PHPSESSID"]="what?"; I've been quite a long time trying to find an answer to this "problem". A reference to a tutorial or a little bit more detail would be extraordinary. Quote Link to comment https://forums.phpfreaks.com/topic/84911-passing-session-id-between-pages/#findComment-432919 Share on other sites More sharing options...
GingerRobot Posted January 7, 2008 Share Posted January 7, 2008 Pass it as a $_SESSION variable? Thats not exactly going to work - you'd need the session id to access it! raven74 : Unfortunately, those are your options. You either pass it around in the URL or stick it in a cookie. Quote Link to comment https://forums.phpfreaks.com/topic/84911-passing-session-id-between-pages/#findComment-432921 Share on other sites More sharing options...
revraz Posted January 7, 2008 Share Posted January 7, 2008 Ah I see what you're asking http://devzone.zend.com/node/view/id/1312#propag Quote Link to comment https://forums.phpfreaks.com/topic/84911-passing-session-id-between-pages/#findComment-432922 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.