note 9317 added to session_set_save_handler

From: Date: Fri, 27 Oct 2000 19:56:59 +0000
Subject: note 9317 added to session_set_save_handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-7069@lists.php.net to get a copy of this message
A feature(?) that may not be documented is the fact that when over-riding the session-handler, (not forgetting to set save_handler in the php.ini file), the session write function is only called AFTER the apache output stream is closed. What this means is that any debugging, output to screen or errors thrown within the session_write function WILL NOT GET DISPLAYED. The only way to debug the session write function is to use error logging to a file (setting in the php.ini file). This managed to cause me hours of frustration. Hope this helps http://www.php.net/manual/function.session-set-save-handler.php

« previous php.notes (#7069) next »