php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #28888 Possibility to make sessions read-only
Submitted: 2004-06-23 08:19 UTC Modified: 2004-06-25 05:18 UTC
From: marekm at apnet dot pl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.7 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marekm at apnet dot pl
New email:
PHP Version: OS:

 

 [2004-06-23 08:19 UTC] 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.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-25 05:18 UTC] curt@php.net
use session_write_close() before you start sending your file.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 13:01:27 2024 UTC