|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-06-06 08:13 UTC] jmat at shutdown dot net
When a custom script is used to read/write sessions, and an exit is called in the middle of a script, the session write routine never gets called -- even though when using the internal routines, it does. This makes scripts that use Header redirects semi-useless, since they can't do 'exit;' to get out of the script as soon as the header is sent. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 08:00:02 2025 UTC |
I bypassed this problem, for now by doing a do { ... } while(0); and using 'break'; to jump out of the script.. but shouldn't the internal handler act the same as the 'user defined' handlers? if 'exit' causes the internal-files handler to save the session, the user-defined one should run, as well...