#33130 [Opn]: Odd behavior with session handling

From: Date: Tue, 24 May 2005 17:31:09 +0000
Subject: #33130 [Opn]: Odd behavior with session handling
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79453@lists.php.net to get a copy of this message
ID: 33130 User updated by: steve at gamesareforchildren dot com Reported By: steve at gamesareforchildren dot com Status: Open Bug Type: Apache2 related Operating System: Windows XP SP2, all updates PHP Version: 5.0.4 New Comment: I misunderstood what "expected result" meant. If things were working correctly, the array would contain all the variables, even from previous pages. In reality, it contains only variables added to the session array in the current page. Previous Comments: ------------------------------------------------------------------------ [2005-05-24 19:29:42] steve at gamesareforchildren dot com 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 this bug report at http://bugs.php.net/?id=33130&edit=1

« previous php.bugs (#79453) next »