php.net |  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
Votes:4
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-17 12:40 UTC] jani@php.net
-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] jani@php.net
Reclassified. Note: You can always write your own session handler of which GC function you can call anywhere.. :)
 [2012-03-31 04:32 UTC] yohgaki@php.net
-Assigned To: +Assigned To: yohgaki
 [2012-03-31 04:32 UTC] yohgaki@php.net
session_start_gc() sounds good, but session should not be started or closed 
before calling it.
 [2013-08-10 05:47 UTC] yohgaki@php.net
-Summary: session_garbage_collector function +Summary: session_gc() function
 [2013-08-10 06:22 UTC] yohgaki@php.net
-Status: Assigned +Status: Closed
 [2013-08-10 06:22 UTC] yohgaki@php.net
It will be available in 5.6 or later.
 [2014-06-03 07:35 UTC] tyrael@php.net
-Status: Closed +Status: Re-Opened
 [2014-06-03 07:35 UTC] tyrael@php.net
we decided to revert it from 5.6.0, so re-opening
 [2016-08-28 21:10 UTC] yohgaki@php.net
-Status: Re-Opened +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC