#21757 [Opn->Fbk]: session_register (); does not do it's job!

From: Date: Mon, 20 Jan 2003 19:54:18 +0000
Subject: #21757 [Opn->Fbk]: session_register (); does not do it's job!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30709@lists.php.net to get a copy of this message
ID: 21757 Updated by: iliaa@php.net Reported By: MDonatas@centras.lt -Status: Open +Status: Feedback Bug Type: Session related Operating System: Windows XP Pro PHP Version: 4.3.0 New Comment: Does your php.ini allow PHP to set cookie session? Previous Comments: ------------------------------------------------------------------------ [2003-01-20 10:40:38] MDonatas@centras.lt 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! ------------------------------------------------------------------------ [2003-01-19 17:52:30] kalowsky@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. A) updating category. B) Not enough info, and from what I can tell so far this is probably Bogus. ------------------------------------------------------------------------ [2003-01-19 15:38:38] MDonatas@centras.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> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21757&edit=1

« previous php.bugs (#30709) next »