Forum

Thread tagged as: Question, Runway, Shop

Perch members logged in session duration

Hi,

I've been asked by a client using Perch shop if there is an auto logout for members after a certain period of time of inactivity?

What's the default duration of a members session?

Many thanks

Lee Goodman

Lee Goodman 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It's set with PERCH_MEMBERS_SESSION_TIME e.g.

define('PERCH_MEMBERS_SESSION_TIME', '30 DAYS');

Thanks Drew, Is that just defined in the default perch\config\config.php?

Many thanks

Lee

sorry and if I wanted that as short as possible, i.e as soon as a user's web session ends what would be the duration to set.

define('PERCH_MEMBERS_SESSION_TIME', '<value>');

Thanks

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think 0 would do it

define('PERCH_MEMBERS_SESSION_TIME', '0');

face palm!!

Thanks Drew