|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-06-13 22:42 UTC] kvonlaven at yahoo dot com
-Status: Open
+Status: Closed
-PHP Version: Irrelevant
+PHP Version: 5.2.6-1+lenny10
[2011-06-13 22:42 UTC] kvonlaven at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
Description: ------------ I'm using PHP version 5.2.6-1+lenny10. I would upgrade or try using an SVN snapshot if I could, but I don't have administrator privileges on the server I'm using :-/. Below is an excerpt from my php.ini file. session.gc_probability = 1 session.gc_divisor = 1 session.gc_maxlifetime = 3600 I also have a call to session_save_path('Session Data') and ini_set('session.gc_maxlifetime', 3600) right before session_start() gets called. These three functions get called at the top of every page before any output is sent from the server. Test script: --------------- I executed the following script to verify that PHP has the appropriate privileges to delete temporary session files, and it deleted the file as expected. <?php unlink('Session Data/name_of_arbitrary_session_file'); ?> Expected result: ---------------- My understanding is that, using this configuration, the garbage collector should completely delete all temporary session files in the "Session Data" directory that are over an hour old every time anybody goes to any page on the site. Actual result: -------------- I have empty temporary session files in the "Session Data" folder that are several days old but have yet to be deleted.