Treval Posted March 11, 2007 Share Posted March 11, 2007 Myello How do I keep the SID alive in the URL? Meaning, no matter how many times I visit the page, the SID is always displayed in the address bar upon each visit/refresh. The symptom I get is: I click the hyperlink to results.php inside updateAPI_.php, it brings me to results.php and I see the sessionID properly displayed in the URL. But once I click on the hyperlink 'updateAPI_.php' and am brought back to the original page, the SID is gone. It is, gone. When I revisit the page results.php it is gone also. The only way it works is by closing the browser and reopening it, visiting the page. Here's my code: http://rafb.net/p/5HgikJ38.html Many thanks for your help Treval Link to comment https://forums.phpfreaks.com/topic/42237-how-do-i-keep-the-sid-alive-in-the-url/ Share on other sites More sharing options...
paul2463 Posted March 11, 2007 Share Posted March 11, 2007 on your updateAPI_.php put the session_start() at the top of the page before any other code <?php session_start(); ?> <html> BLAh Link to comment https://forums.phpfreaks.com/topic/42237-how-do-i-keep-the-sid-alive-in-the-url/#findComment-204939 Share on other sites More sharing options...
Treval Posted March 11, 2007 Author Share Posted March 11, 2007 Mm that didn't help.. Same symptom. I think there must be some setting in my php.ini or httpd.conf preventing me from doing this.. Link to comment https://forums.phpfreaks.com/topic/42237-how-do-i-keep-the-sid-alive-in-the-url/#findComment-205014 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.