php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40249 Session doesn't expires
Submitted: 2007-01-26 12:10 UTC Modified: 2007-01-26 12:14 UTC
From: fredi_bieging at yahoo dot com dot br Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.0 OS: Linux
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: fredi_bieging at yahoo dot com dot br
New email:
PHP Version: OS:

 

 [2007-01-26 12:10 UTC] fredi_bieging at yahoo dot com dot br
Description:
------------
I set the folowing variables in the php.ini, as follows:

session.gc_probability = 100
session.gc_maxlifetime = 60

My aim was that after 60 seconds the garbage collector deleted the session files, so that the session expired.
This didn't happen. I am sure that the php.ini is read, but anyway I put the following lines at the start of every script:

ini_set("session.gc_probability", "100");
ini_set("session.gc_maxlifetime", "60");

Not a chance, it doesn't work.
Thanks in advance.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-26 12:14 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC