php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51832 Setting session.gc_maxlifetime but still default value of 1440
Submitted: 2010-05-16 08:42 UTC Modified: 2010-05-18 11:05 UTC
From: info at 619cloud dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.3.2 OS: CentOS 5.5
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: info at 619cloud dot com
New email:
PHP Version: OS:

 

 [2010-05-16 08:42 UTC] info at 619cloud dot com
Description:
------------
Just upgraded PHP from 5.2.6 to 5.3.2. I have my session.gc_maxlifetime set to 3 hours, so:

session.gc_maxlifetime = 10800

This worked in 5.2.6, verified in phpinfo(), but now when I go into phpinfo() in 5.3.2 it is the default value of 1440. I have gone into the /etc/php.ini and confirmed that session.gc_maxlifetime is indeed still set to 10800.

Test script:
---------------
<?php
    phpinfo();
?>


Patches

session.gc_maxlifetime (last revision 2010-05-16 06:44 UTC by info at 619cloud dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-18 10:16 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2010-05-18 10:16 UTC] mike@php.net
Not reproducible. Please check that you load the correct php.ini.
 [2010-05-18 10:44 UTC] info at 619cloud dot com
-Status: Feedback +Status: Open
 [2010-05-18 10:44 UTC] info at 619cloud dot com
PROBLEM FOUND. I had a single typo 's' before the opening of the php configuration file, leading to the entire config file not being loaded. I feel silly and stupid. Thanks.
 [2010-05-18 11:05 UTC] mike@php.net
-Status: Open +Status: Bogus
 [2010-05-18 11:05 UTC] mike@php.net
Nevermind.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Feb 15 21:00:01 2026 UTC