|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-08-01 05:01 UTC] sokann at gmail dot com
1. Download and run

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


$_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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-31 03:33 UTC]
-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 
 [2013-08-07 10:08 UTC]
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]
-Status: Assigned +Status: Feedback
 [2015-02-03 05:15 UTC]
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-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 15:01:31 2024 UTC