#28888 [Opn->Csd]: Possibility to make sessions read-only
| From: | curt@php.net | Date: | Fri, 25 Jun 2004 03:18:40 +0000 |
| Subject: | #28888 [Opn->Csd]: Possibility to make sessions read-only | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61340@lists.php.net to get a copy of this message | ||
ID: 28888
Updated by: curt@php.net
Reported By: marekm at apnet dot pl
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.3.7
New Comment:
use session_write_close() before you start sending your file.
Previous Comments:
------------------------------------------------------------------------
[2004-06-23 08:19:43] marekm at apnet dot pl
Description:
------------
I'm using a php script that uses sessions and send really big files as
output to the users. As the files are opened in popup windows I
recently noticed that other scripts (with the same session id) are
locked until the first send all data to the user.
I think that solution could be quite simple:
If session_stat() had a parameter like eg. readonly (defaults to false)
PHP engine didn't have to lock session file for the lifetime of whole
PHP script but only for the time of reading session file.
That would dramatically improve performance in scripts like mine.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28888&edit=1