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

From: Date: Mon, 07 Jul 2003 10:32:53 +0000
Subject: note 33765 added to function.session-set-save-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-51616@lists.php.net to get a copy of this message
in reply to myself... (05-Jun-2003 09:09) well. you DO get the whole session info on _read() if you do actually _write the info.. and dont delete it until you _read() it again !! this is what happened to me... when writing my custom session_handler object, i messed the order of the session_set_handler parameters, and instead of calling _write() i was calling _read() and viceversa. as rettori at brturbo dot com said... > The script will work in the follwing sequence. > 1st, a session_id will be set (if it hans't been set yet) OK. > 2nd, php will read ALL session variables BUT if you call a _writer then you are writting the session, and since sessiondata is empty.. deleting the data. so *watch out* the order of the calls since i got no error.. it just worked weirdo. ---- Manual Page -- http://www.php.net/manual/en/function.session-set-save-handler.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33765 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33765&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33765&report=yes

« previous php.notes (#51616) next »