note 14628 added to function.session-set-save-handler.php
| From: | mneugebauer at omaha dot com | Date: | Tue, 07 Aug 2001 09:44:38 +0000 |
| Subject: | note 14628 added to function.session-set-save-handler.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16423@lists.php.net to get a copy of this message | ||
I set up a session save handler for Sybase and was having problems because the write() function was
not executing. After examining the PHP source code, I found an undocumented function named
session_write_close(). This function apparently forces the call to the write() function in your
handler. After I placed this function near the bottom of my script, the write() function got called
and the Sybase row was written properly. Hope this saves someone some time :-).
http://www.php.net/manual/en/function.session-set-save-handler.php