PHP 4.0 Bug #8978: Add a 'readonly' possibility to the session module
| From: | Maxim Derkachev | Date: | Mon, 29 Jan 2001 11:21:32 +0000 |
| Subject: | PHP 4.0 Bug #8978: Add a 'readonly' possibility to the session module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45235@lists.php.net to get a copy of this message | ||
From: Maxim Derkachev <kot@books.ru>
Operating system:
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: Add a 'readonly' possibility to the session module
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.
--
Edit Bug report at: http://bugs.php.net/?id=8978&edit=1