From: Operating system: Windows Server 2008 PHP version: 5.3.6 Package: Session related Bug Type: Bug Bug description:session files stay forever under C:\Windows\Temp
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 bug report at https://bugs.php.net/bug.php?id=55333&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55333&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55333&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55333&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55333&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55333&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55333&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55333&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55333&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55333&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55333&r=support Expected behavior: https://bugs.php.net/fix.php?id=55333&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55333&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55333&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55333&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55333&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55333&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55333&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55333&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55333&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55333&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55333&r=mysqlcfg
