note 39416 added to function.session-set-save-handler

From: Date: Tue, 27 Jan 2004 22:18:48 +0000
Subject: note 39416 added to function.session-set-save-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-64290@lists.php.net to get a copy of this message
much to my delight, and contrary to the documentation above, in my experience: 1) write() is always called - even with an empty $_SESSION or null-valued elements. with an empty $_SESSION, write will be called with '' (empty string), and with the latter, it behaves as expected, serializing the null-valued elements. (preserving the fact that those key_exists() and are set to null) 2) echo statements from write() did in fact appear in my browser after the output stream was flushed (after the very last </html>, for example), making debugging much easier. (i discovered this only after setting up the log file. ;] ) (i am using PHP 5.0.0beta3 (god bless exception handling) which may explain why my mileage varies.) code till dawn, mark meves ---- Manual Page -- http://www.php.net/manual/en/function.session-set-save-handler.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39416 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39416&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39416&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64290) next »