note 89018 deleted from function.session-set-save-handler by drak
| From: | drak@php.net | Date: | Sun, 11 Mar 2012 04:29:53 +0000 |
| Subject: | note 89018 deleted from function.session-set-save-handler by drak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186592@lists.php.net to get a copy of this message | ||
Note Submitter: thomas at koudela dot net
----
There are cases when calling session_write_close() from a destructor doesn't work. [E.g. order
of destruction works bad for you and dependencies aren't on your side.] In all cases I stumble
on...
register_shutdown_function('session_write_close');
...just works fine.