ID: 29452 User updated by: gattas at yahoo dot com Reported By: gattas at yahoo dot com Status: Open Bug Type: Session related Operating System: Win XP PHP Version: 5.0.0 New Comment:
Where can i found the August 2 CVS check? Regards. Previous Comments: ------------------------------------------------------------------------ [2004-08-02 15:17:36] alex at avannaproductions dot com Well my problem was fixed with the August 2 CVS check- ins by Sascha Schumann. ------------------------------------------------------------------------ [2004-07-30 16:47:13] alex at avannaproductions dot com I have a similar problem on MacOS X. Not sure if it is related. Using 5.0.0 release, all is well, however in the CVS releases the following problem occurs. The first time I load a page with this code: session_start(); $_SESSION[c]++; echo "test: $_SESSION[c]"; It sets a cookie for the session and echoes "test: 1". When I reload the page, instead of getting "test: 2", the browser refuses to load the web page and reports "unable to retrieve any data from location." I isolated the problem line to session_start(), which means there is simply a bug in the *re*opening of a session. If I reinstall the 5.0.0 release, while changing nothing else, it works as expected once again. ------------------------------------------------------------------------ [2004-07-30 01:51:07] gattas at yahoo dot com Description: ------------ Hi everyone. Using PHP 5.0.0 with Apache/1.3.31 (Win32) on XP, everything seems to be set up in the way it should be (in fact, I compared my .ini with another system's .ini that I'm developing -different configuration: Win 2000, IIS 5, PHP 4.3- where everything's allright and the two files match exactly) but when I change the page the variables are lost no matter if I use $_SESSION or $HTTP_SESSION_VARS or SESSION_REGISTER. Reproduce code: --------------- // login.htm <form name="impData" method="post" action="login_do.php"> <table width="171" align="left" style="font-size:12;"> <tr> <td width="90">User:</td> <td width="93"><input name="user" type="text" class="box-text" size="10"></td> </tr> <tr> <td>Password:</td> <td><input name="pass" type="password" class="box-text" size="10"></td> </tr> </table></form> //login_do.php <? session_start(); $_SESSION['user']=$usr; echo $_SESSION['user']; ?> // other_page.php <? echo $_SESSION['user']; ?> Expected result: ---------------- I expect to see the user that I wrote in login.htm in other_page.php when doing echo and to have the session variables at my disposal. Actual result: -------------- In login_do.php I can see them but not in other_page.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29452&edit=1