php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55333 session files stay forever under C:\Windows\Temp
Submitted: 2011-08-01 05:01 UTC Modified: 2015-02-15 04:22 UTC
Votes:9
Avg. Score:4.2 ± 1.0
Reproduced:8 of 8 (100.0%)
Same Version:0 (0.0%)
Same OS:7 (87.5%)
From: sokann at gmail dot com Assigned: yohgaki (profile)
Status: No Feedback Package: Session related
PHP Version: 5.3.6 OS: Windows Server 2008
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sokann at gmail dot com
New email:
PHP Version: OS:

 

 [2011-08-01 05:01 UTC] sokann at gmail dot com
Description:
------------
1. Download and run http://windows.php.net/downloads/releases/php-5.3.6-nts-Win32-VC9-x86.msi

2. Under "Web Server Setup", select "IIS FastCGI". Next, Next, Install.

3. Open php.ini, and set the following:

session.gc_divisor = 1
session.gc_maxlifetime = 10

4. Put this under C:\inetpub\wwwroot as test.php

<?php
session_start();

$_SESSION['test'] = 42;
?>

5. Open a web browser

6. Go to http://localhost/test.php

7. Clear all browsing data, and wait 15 seconds

8. Repeat steps 6 and 7 for N times

9. Go to C:\Windows\Temp

10. Found N + 1 files named sess_xxxx. GC never run.

This could be related to bug 54951, and possibly a duplicate of bug 47060.





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-31 03:33 UTC] yohgaki@php.net
-Assigned To: +Assigned To: yohgaki
 [2012-10-07 07:52 UTC] erickque75 at hotmail dot com
I can confirm this behaviour on Windows 2008R2 PHP 5.3.17
A workaround could be to disable GC and garbage collect manually with a scheduled 
task.
 [2013-08-07 10:08 UTC] yohgaki@php.net
sokann and erickque75

I don't use windows regularly, what's your session.save_path setting?
If you use 5.4 or later, please update PHP version.
 [2015-02-03 05:15 UTC] yohgaki@php.net
-Status: Assigned +Status: Feedback
 [2015-02-03 05:15 UTC] yohgaki@php.net
Anyone can confirm this issue exists in PHP-5.5 or later?
Thank you.
 [2015-02-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 05:05:50 2023 UTC