php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49336 Description of session.gc_max_lifetime is incorrect and misleading
Submitted: 2009-08-23 14:00 UTC Modified: 2009-08-23 14:08 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
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: tom at punkave dot com
New email:
PHP Version: OS:

 

 [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-08-23 14:08 UTC] tom at punkave dot com
Redundant submission
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC