Forum
Change setting for session timeout in Runway Admin?
To change this to one day, I put this line in config.php ... define('PERCH_SESSION_TIMEOUT_MINS', '1440'); According to the extended diagnostics in Runway ... PERCH_SESSION_TIMEOUT_MINS: 1440 ... this is set correctly. I can see a 'csma' cookie that has a one day life to it.
And yet I'm logged out of Runway's Admin a long time before 24 hours is over. Is there some other setting I've missed to stop Admin being logged out?
Have you configured
session.gc-maxlifetime
?https://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
That value is set to 1440 in my PHP 7.1.4 installation.
That's 24 minutes.
Ah yes, 1440 is in seconds for session.gc-maxlifetime. But the 1440 in PERCH_SESSION_TIMEOUT_MINS is minutes. I'd not noticed that and thought they were the same. I should set session.gc-maxlifetime to 43200 for (say) 12 hours? I'll get that done. So what is PERCH_SESSION_TIMEOUT_MINS used for?
PERCH_SESSION_TIMEOUT_MINS
is used for the lifetime of the session cookie that identifies the session.