|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11100 session_gc() function
Submitted: 2001-05-24 18:29 UTC Modified: 2016-08-28 21:10 UTC
Avg. Score:3.5 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ryan at post891 dot org Assigned: yohgaki (profile)
Status: Closed Package: Session related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ryan at post891 dot org
New email:
PHP Version: OS:


 [2001-05-24 18:29 UTC] ryan at post891 dot org
i'd like to be able to call the php session garbage collection function from within a PHP script.... right now the only way to run it is to do a session_start and hope that the gc_probablility is high enough that it will run.  it would be good to have a function that does it nomatter what the gc_probablity is!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-17 12:40 UTC]
-Package: Feature/Change Request +Package: Session related -Operating System: TOPS-20 +Operating System: * -PHP Version: 4.0.5 +PHP Version: *
 [2010-12-17 12:40 UTC]
Reclassified. Note: You can always write your own session handler of which GC function you can call anywhere.. :)
 [2012-03-31 04:32 UTC]
-Assigned To: +Assigned To: yohgaki
 [2012-03-31 04:32 UTC]
session_start_gc() sounds good, but session should not be started or closed 
before calling it.
 [2013-08-10 05:47 UTC]
-Summary: session_garbage_collector function +Summary: session_gc() function
 [2013-08-10 06:22 UTC]
-Status: Assigned +Status: Closed
 [2013-08-10 06:22 UTC]
It will be available in 5.6 or later.
 [2014-06-03 07:35 UTC]
-Status: Closed +Status: Re-Opened
 [2014-06-03 07:35 UTC]
we decided to revert it from 5.6.0, so re-opening
 [2016-08-28 21:10 UTC]
-Status: Re-Opened +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC