From: Operating system: Linux 2.6.40.4-5 PHP version: 5.3.8 Package: Session related Bug Type: Bug Bug description:Custom session handlers fail when using header redirect
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 bug report at https://bugs.php.net/bug.php?id=60303&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60303&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60303&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60303&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60303&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60303&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60303&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60303&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60303&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60303&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60303&r=support Expected behavior: https://bugs.php.net/fix.php?id=60303&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60303&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60303&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60303&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60303&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60303&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60303&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60303&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60303&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60303&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60303&r=mysqlcfg