Bug #15884 Updated: session_unregister does not work when followed by header("Location: ...")
| From: | yohgaki@php.net | Date: | Wed, 06 Mar 2002 08:04:02 +0000 |
| Subject: | Bug #15884 Updated: session_unregister does not work when followed by header("Location: ...") | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1753@lists.php.net to get a copy of this message | ||
ID: 15884
Updated by: yohgaki@php.net
-Summary: session_unregister does not work when followed by
header("Location: ...")
Reported By: jt@domainfactory.de
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
You must provide short & complete script.
It sounds like your bug to me.
Previous Comments:
------------------------------------------------------------------------
[2002-03-05 12:32:08] jt@domainfactory.de
When followed by a
header("Location: ...");
statement session_unregister does not get properly executed.
Reproduce: Take any script that has a session_unregister in it, put a
header("Location: ...") under this statement, and see if unregistered
var gets deleted from session-storage (it does not)
Now put a session_write_close() in front of the header-statement and
watch it work properly.
If you have trouble reproducing this please don't hesitate to contact
me.
My setup:
User-Defined Session-Handler: pgsql_session_handler latest version
PHP compiled with:
./configure' '--with-mysql=/usr/local/mysql' '--with-pgsql'
'--with-ldap' '--enable-trans-sid' '--with-gd'
Exact same setup worked with php4.0.6, did not work after upgrade to
4.1.2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15884&edit=1