From: gattas at yahoo dot com
Operating system: Win XP
PHP version: 5.0.0
PHP Bug Type: Session related
Bug description: Session vars lost on changing page
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 bug report at http://bugs.php.net/?id=29452&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29452&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29452&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29452&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29452&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29452&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29452&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29452&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29452&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29452&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29452&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29452&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29452&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29452&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29452&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29452&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29452&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29452&r=float