Bug #16202 Updated: session variables not getting set
| From: | chippyho at maildozy dot com | Date: | Thu, 21 Mar 2002 10:47:34 +0000 |
| Subject: | Bug #16202 Updated: session variables not getting set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3037@lists.php.net to get a copy of this message | ||
ID: 16202
Updated by: chippyho@maildozy.com
Reported By: mikah@ceruleansoftware.com
Status: Open
Bug Type: Session related
Operating System: win 2000 pro
PHP Version: 4.1.2
New Comment:
I have the same problem .
Here is my profile.
OS : WIN ME
Apache-Win32 1.3.23
PHP 4.1.2
PHP can not get the value from _SESSION[] even if from itself this is
my code to test. Back when rollback to 4.1.1 the problem solve.
Previous Comments:
------------------------------------------------------------------------
[2002-03-21 05:28:51] mikah@ceruleansoftware.com
Setup: win2k pro, apache-win 1.3.23, php 4.1.2 (sapi)
Session variables set using this method
$_SESSION['quux'] = 'foo'
don't get set. Using session_register() works though. This is the case
with _both_ CGI and SAPI versions
I verified this by opening up the session file in an editor. It is
created but not written to in the first case, and *is* written to when
using session_register().
I tried toggling register_globals, changing location of session file
directory, making sure it had correct access permissions, trying the
CGI, restarting apache, tweaking the session cookie parameters,
explicitly calling session_write_close(). None of these worked.
Rolling back to php 4.1.1 solved the problem.
Here's a script to reproduce the problem:
----- file test1.php -----
<?php
session_start();
$_SESSION["roy"] = "haynes";
header("location: ./test2.php");
?>
----- file test2.php -----
<?php
session_start();
//
// displays empty array
//
var_dump($_SESSION);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16202&edit=1