Edit report at https://bugs.php.net/bug.php?id=55333&edit=1

 ID:                 55333
 Updated by:         yohg...@php.net
 Reported by:        sokann at gmail dot com
 Summary:            session files stay forever under C:\Windows\Temp
 Status:             Assigned
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to