|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-19 15:38 UTC] MDonatas at centras dot lt
Here is the simple peace of code with the link to the page itself. Session ID has to stay the same all the time as it is assigned to the browser window (this conclusion is made by my own experiance :) ). Tested with IE 6.0 //Start here <?session_start ();?> <html> <head> <title></title> </head> <body> <?php echo session_id ().'<br>'; ?> <a href="session_id.php">Test_Link</a> </body> </html> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 08:00:01 2025 UTC |
Well, Previous version of PHP I used was 4.23 and everything went well. Now in PHP 4.3 session_register ('string'); or $_SESSION ["string"]; does not register these 'string' variables when going from one page to another. And by the way, echoing session_id (); in every new page you go to (using hyperlinks, not opening new IE window) it gives you different session ID and as far as I know that should not be changhing unless you open another browser window. Why don't you try registering variable and in another page writing if (session_is_registered ('string')) echo 'success'; I bet you won't see success though you should!