php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41738 session file lock not released
Submitted: 2007-06-19 17:27 UTC Modified: 2007-06-29 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: e dot mauviere at geoclip dot fr Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.2.3 OS: Win XPPRO
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: e dot mauviere at geoclip dot fr
New email:
PHP Version: OS:

 

 [2007-06-19 17:27 UTC] e dot mauviere at geoclip dot fr
Description:
------------
This appeared suddendly on my server. a session_start() in a php script called by a first one with a first session_start() fails :
Warning: session_start() [function.session-start]: open(C:\WINDOWS\TEMP\\sess_dasb7s8kc3op8u6220rupt7ed4, O_RDWR) failed: Permission denied (13) in c:\wwwroot\_fl7\session.php on line 2


After checking in windows temp, the session file appears to be locked (read only). 

I had to restart the server, all was working properly again, then, few hours later, same problem suddendly appears.

Reproduce code:
---------------
<?php
session_start();
echo $_SESSION["test"];
$_SESSION["test"]=1;
?>
<html>
<body>
<a href='session.php'>recall</a>
</body>
</html>

Expected result:
----------------
after clicking recall link : 1 

Actual result:
--------------
Warning: session_start() [function.session-start]: open(C:\WINDOWS\TEMP\\sess_dasb7s8kc3op8u6220rupt7ed4, O_RDWR) failed: Permission denied (13) in c:\wwwroot\_fl7\session.php on line 2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-05-17 08:01 UTC] adesanto_4sm4n at yahoo dot co dot id
This might help you:
http://www.php.net/manual/en/function.session-write-close.php

Reproduce code:
---------------
<?php
session_start();
echo $_SESSION["test"];
$_SESSION["test"]=1;
session_write_close(); <-- should fix your problem
?>
<html>
<body>
<a href='session.php'>recall</a>
</body>
</html>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 07:01:33 2025 UTC