|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-30 16:47 UTC] alex at avannaproductions dot com
[2004-08-02 15:17 UTC] alex at avannaproductions dot com
[2004-08-02 15:45 UTC] gattas at yahoo dot com
[2004-08-02 15:48 UTC] tony2001@php.net
[2004-08-10 01:00 UTC] php-bugs at lists dot php dot net
[2007-08-17 18:00 UTC] jpveilleux at stylishdesigns dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 17:00:01 2025 UTC |
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