note 13773 added to function.session-readonly.php

From: Date: Mon, 02 Jul 2001 17:53:39 +0000
Subject: note 13773 added to function.session-readonly.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14914@lists.php.net to get a copy of this message
If session_readonly() works with session_start(), you have an excellent solution to the frames update problem. Start each script with session_readonly() to get what you need, process whatever is required, open the session record for update with session_start(), then immediately save the updates with session_end(). The session record is locked for the bare minimum time. I implemented the equivalent last year by using the session user mode code to manage record locking behind the scenes. One thing I found usefull was to leave some fields, like interframe messages, out of the session data field, so I could independently update and retrieve the fields. That completely solves the problem of the asynchronous frame starts. http://www.php.net/manual/en/function.session-readonly.php

« previous php.notes (#14914) next »