July 2009
1 post
7 tags
PHP sessions timeout too soon, no matter how you...
The scenario You’re running Debian Linux or Ubuntu Linux. You want PHP sessions to last longer than the default 1440 seconds (24 minutes). So you do this: ini_set('session.gc_maxlifetime', 10800); # 3 hours With this setting, sessions should remain active for at least three hours, as long as users don’t close their browser.1 But no matter what you do, sessions keep getting deleted after...
Jul 24th
2 notes