Bug #60303 [Opn->Csd]: Custom session handlers fail when using header redirect
| From: | wdouglascampbell at hotmail dot com | Date: | Tue, 15 Nov 2011 09:36:53 +0000 |
| Subject: | Bug #60303 [Opn->Csd]: Custom session handlers fail when using header redirect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165154@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60303&edit=1
ID: 60303
User updated by: wdouglascampbell at hotmail dot com
Reported by: wdouglascampbell at hotmail dot com
Summary: Custom session handlers fail when using header
redirect
-Status: Open
+Status: Closed
Type: Bug
Package: Session related
Operating System: Linux 2.6.40.4-5
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
Sorry. I had an error in my sess_write routine and the sessions table entry was not being properly
updated.
There is no bug.
Previous Comments:
------------------------------------------------------------------------
[2011-11-14 21:43:51] wdouglascampbell at hotmail dot com
Description:
------------
I have a custom session handler. My session variables are not saved when I use a header redirect.
In fact, the $_SESSION array is shown as empty.
If I use the standard session handlers, everything works fine as expected.
Test script:
---------------
The three files for replicating this problem are can be retrieve from the following archive:
https://globalopsccci.org/TheKey_AuthTest/testfiles.tar.bz2
Expected result:
----------------
The following output should be displayed:
testarray(1) { ["test"]=> string(4) "test" }
The above is displayed if I comment out the include_once line in test.php and test2.php.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60303&edit=1