From: steve at gamesareforchildren dot com Operating system: Windows XP SP2, all updates PHP version: 5.0.4 PHP Bug Type: Apache2 related Bug description: Odd behavior with session handling
Description: ------------ After spending 25 hours over three days reading through thousands of websites and attempting every configuration change imaginable, including downgrading PHP and Apache and then re-upgrading, I can only conclude that this issue is a bug. Look at the files provided and try out the forms. In most cases, the session data is not carried across pages. session_start() is being called in all instances. Files are indeed being created in the directory specified in php.ini, but they also contain only the data from the most recent page; it's as if the old data is somehow being lost. Yet, in Firefox, at least, I can see that a PHPSESSID cookie has been created, yet the data displayed in the browser is still incorrect. The only clue I got was that this issue might have something to do with virtual hosts, but I spent three hours on that alone and was unable to resolve the problem; disabling virtual hosts is not an available solution. The problem did not arise until I purchased and configured an additional domain name for this server. Here are some additional statistics if they are of use: OS: Windows XP SP2, all available updates installed PHP: version 5.0.4 (downgrade fails to fix problem) Apache: version 2.0.54 (downgrade fails to fix problem) Other applications running: RealVNC, WinWebMail E-Mail server, Activeworlds world server software, and IIS 5 (on port 81) Router problems are not an issue, because I set this computer as the DMZ. Reproduce code: --------------- http://www.shoemakervillage.org/20.html Code is located at http://www.shoemakervillage.org/20.txt, http://www.shoemakervillage.org/21.txt PHP INI is at http://www.shoemakervillage.org/php.ini httpd.conf is at http://www.shoemakervillage.org/httpd.conf Expected result: ---------------- Array will not contain session variables brought over from previous pages. In IE, the array will sometimes contain previous variables. In Firefox, the array never contains previous variables. Tested using web browsers from three systems. Actual result: -------------- Array ( [Surname] => Steve2 [Submit] => Submit ) "Name" is not contained in the array. -- Edit bug report at http://bugs.php.net/?id=33130&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33130&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33130&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33130&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33130&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33130&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33130&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33130&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33130&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33130&r=support Expected behavior: http://bugs.php.net/fix.php?id=33130&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33130&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33130&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33130&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33130&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33130&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33130&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33130&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33130&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33130&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33130&r=mysqlcfg