php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49335 Description of session.gc_max_lifetime is incorrect and misleading
Submitted: 2009-08-23 14:00 UTC Modified: 2009-11-13 22:45 UTC
From: tom at punkave dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.10 OS: All
Private report: No CVE-ID: None
 [2009-08-23 14:00 UTC] tom at punkave dot com
Description:
------------
The description of session.gc_max_lifetime (as well as its name) imply 
that it is the maximum lifetime of a session. In actuality it is just 
the session timeout. This problem exists in both php.ini-dist/php.ini-
production and in the online reference manual.

I considered sending a diff but it's not clear to me where to send it.

* * *

The current text:

; After this number of seconds, stored data will be seen as 'garbage' 
and
; cleaned up by the garbage collection process.

session.gc_maxlifetime = 1440

Suggested replacement:

; Session idle timeout. If a session is idle for this number 
; of seconds, and PHP's default session handling is in use, 
; the session data will potentially be cleaned up by the 
; garbage collection process. Note that custom session
; handlers can override this (see session_set_save_handler ).
; The default timeout is 1440 seconds (24 minutes).

session.gc_maxlifetime = 1440



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-13 22:45 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2009-11-13 22:45 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290720
Log: Clarify session.gc_maxlifetime (bug #49335)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 10 07:00:01 2026 UTC