Vagishius Posted August 8, 2004 Posted August 8, 2004 session.use_cookies Offsession.use_trans_sid OnWhen i go to index.php, sesionID does not appear in the URL and when i press "refresh" - starts a new session Going on link, solves the problem. But how to add sessionID in first page URL ? P.S. sorry for my english
iLLuZZiOn Posted August 26, 2004 Posted August 26, 2004 instead of just putting session_start();put this code:if (isset($_GET['s'])) session_id($_GET['s']);session_start();then on everylink on your site put:<a href=\"myurl.php?s=".session_id()."\">My link</a>either that or you can make a javascript that adds the session id onto any link, im not sure how you would do this.. the only other thing, is instead of echo ing the page content, save it to a variable.Then go:$mySite = "site content";$mySite = str_replace( ".php", ".php?s=".session_id(), $mySite);good luck
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now