Bug #16585 Updated: Use of $_SESSION to set variable doesn't save variable
| From: | sniper@php.net | Date: | Sat, 13 Apr 2002 18:11:08 +0000 |
| Subject: | Bug #16585 Updated: Use of $_SESSION to set variable doesn't save variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4903@lists.php.net to get a copy of this message | ||
ID: 16585
Updated by: sniper@php.net
Reported By: cedric.dufour@cogito-ergo-soft.com
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Windows XP
PHP Version: 4.1.2
New Comment:
It's propably the same issue as everyone else is having.
Please try the PHP 4.2.0RC3 from http://www.php.net/~derick/
as others have reported that it works fine for them.
And don't forget to replace the php4ts.dll in your system
with the one in the 4.2.0RC3 package.
Previous Comments:
------------------------------------------------------------------------
[2002-04-13 06:50:03] cedric.dufour@cogito-ergo-soft.com
Following the 'Session handling' documentation and expriencing problems
with a production script, I wrote the following test script:
test.php:
<?php
session_start();
echo "Session ID : ".session_id()."<BR>\r\n";
if( !isset( $_SESSION['Test'] ) )
{
$_SESSION['Test'] = "bla bla bla";
echo "Defined : ".$_SESSION['Test']."<BR>\r\n";
}
else
{
echo "Existing : ".$_SESSION['Test']."<BR>\r\n";
}
//session_write_close();
?>
which I expect to set the 'Test' session variable on the first call to
the page and then return the 'Test' session variable on subsequent
calls to the script.
This works FINE with PHP 4.1.1 but DOES NOT WORK with PHP 4.1.2 (though
the session ID is the same). I had to revert to the old
'session_register()' function for the script to work in PHP 4.1.2,
$HTTP_SESSION_VARS not working either.
Any clue ?
Ce.D
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16585&edit=1