PHP 4.0 Bug #8978 Updated: Add a 'readonly' possibility to the session module
| From: | andre@php.net | Date: | Tue, 20 Feb 2001 06:33:22 +0000 |
| Subject: | PHP 4.0 Bug #8978 Updated: Add a 'readonly' possibility to the session module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46997@lists.php.net to get a copy of this message | ||
ID: 8978
Updated by: andre
Reported By: Maxim Derkachev <kot@books.ru>
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2001-01-29 06:21:31] Maxim Derkachev <kot@books.ru>
Just faced the fact that the possibility to call session 'readonly'
should be added.
For example, when somebody calls a framed pages where all
frames are php scripts that needs session variables. But in this
case only one of them should be allowed to write session state,
because every frame would write session state in an unpredictable order,
and variables registered/changed in one frame could be overwritten
by other frames, and that would definitely break an application.
I suggest session_start could take an optional READONLY flag to
disable write of the session data during the page shutdown.
The idea is similar to call page_close() on only one frame in a framed page in PHPLib-based
applications.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8978&edit=2