From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.1.2
PHP Bug Type: Session related
Bug description: session_unregister does not work when followed by header("Location:
...")
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 bug report at http://bugs.php.net/?id=15884&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15884&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15884&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15884&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15884&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15884&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15884&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15884&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15884&r=submittedtwice