note 60670 deleted from function.session-set-save-handler by drak

From: Date: Sun, 11 Mar 2012 02:20:13 +0000
Subject: note 60670 deleted from function.session-set-save-handler by drak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186584@lists.php.net to get a copy of this message
Note Submitter: boswachter at xs4all nl ---- If you're creating a sessionhandler class, and use a database-class and you are experiencing problems because of destroyed objects when write is called, you can fix this relatively easily: register_shutdown_function("session_write_close"); This way, the session gets written of before your database-class is destroyed.

« previous php.notes (#186584) next »