Forum

Thread tagged as: Configuration, Runway

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?

Graham Street

Graham Street 17 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That value is set to 1440 in my PHP 7.1.4 installation.

Drew McLellan

Drew McLellan 2638 points
Perch Support

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?

Drew McLellan

Drew McLellan 2638 points
Perch Support

PERCH_SESSION_TIMEOUT_MINS is used for the lifetime of the session cookie that identifies the session.