|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-13 14:11 UTC] sniper@php.net
[2002-05-14 00:00 UTC] php-bugs at lists dot php dot net
[2003-03-06 05:07 UTC] sean at seansilas dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 11:00:01 2025 UTC |
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