How can I change session timeout value?
Article ID: 468 | Rating: 5/5 from 1 votes | Last Updated: Tue, Apr 27, 2010 at 3:34 PM
Check the following values in your php settings.
- session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser.
- a value of 0 means "until the browser is closed"
- session.gc_maxlifetime specifies the number of seconds after which data will be seen as ’garbage’ and cleaned up.
- garbage collection occurs during session start.
Try to set session.gc_maxlifetime to 7200. You must restart your server for this to take effect.