Bug #55333 [Fbk->NoF]: session files stay forever under C:\Windows\Temp

From: Date: Sun, 15 Feb 2015 04:22:21 +0000
Subject: Bug #55333 [Fbk->NoF]: session files stay forever under C:\Windows\Temp
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190690@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55333&edit=1 ID: 55333 Updated by: php-bugs@lists.php.net Reported by: sokann at gmail dot com Summary: session files stay forever under C:\Windows\Temp -Status: Feedback +Status: No Feedback Type: Bug Package: Session related Operating System: Windows Server 2008 PHP Version: 5.3.6 Assigned To: yohgaki Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2015-02-03 05:15:19] yohgaki@php.net Anyone can confirm this issue exists in PHP-5.5 or later? Thank you. ------------------------------------------------------------------------ [2013-08-07 10:08:42] 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. ------------------------------------------------------------------------ [2012-10-07 07:52:59] 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. ------------------------------------------------------------------------ [2011-08-01 05:01:28] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55333&edit=1

« previous php.bugs (#190690) next »