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

From: Date: Sun, 11 Mar 2012 02:20:54 +0000
Subject: note 75336 deleted from function.session-set-save-handler by drak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186587@lists.php.net to get a copy of this message
Note Submitter: sroby at colubris dot company ---- The Web app I work on stores sessions in a database using PEAR::DB, so when I migrated it to PHP 5 everything broke because the DB object was unallocated by the time the write/close handlers were called. However, I've found that adding <?php register_shutdown_function("session_write_close"); ?> works fine as a workaround to the problem.

« previous php.notes (#186587) next »