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

From: Date: Tue, 03 Feb 2015 05:15:19 +0000
Subject: Bug #55333 [Asn->Fbk]: session files stay forever under C:\Windows\Temp
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190425@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: yohgaki@php.net Reported by: sokann at gmail dot com Summary: session files stay forever under C:\Windows\Temp -Status: Assigned +Status: Feedback Type: Bug Package: Session related Operating System: Windows Server 2008 PHP Version: 5.3.6 Assigned To: yohgaki Block user comment: N Private report: N New Comment: Anyone can confirm this issue exists in PHP-5.5 or later? Thank you. Previous Comments: ------------------------------------------------------------------------ [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 (#190425) next »