php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2216 Session garbage collector doesn't work
Submitted: 1999-09-02 08:26 UTC Modified: 1999-09-04 04:36 UTC
From: marco at csita dot unige dot it Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: linux/Debian 2.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marco at csita dot unige dot it
New email:
PHP Version: OS:

 

 [1999-09-02 08:26 UTC] marco at csita dot unige dot it
1) With all ini parameters I have been tested (session_lifetime, ect...), the session garbage collector don't seem to work; my /tmp directory remain full of file like 'eca49c28ecf7ceb11437935e8e62a37d' also after a new call to session_start().
Explict calling of session_destroy() works fine.

2) PHP.INI notes says that session.gc_probability trim probability that garbage collector fire on session_start(), but looking to session.c source I saw that probability is (100-session.gc_probability). So, if you assign 100 to session.gc_probability, garbage collector cannot start.
To resolve problem 1) I try several values of session.gc_probability, but none work.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-04 04:36 UTC] sas at cvs dot php dot net
Both issues are resolved in the current CVS. Thanks for the detailed report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 04:00:02 2026 UTC