Page 1 of 1

3hrs Login session timeout

Posted: Mon Jun 10, 2024 6:02 am
by vintoICT

I’m building a Computer based test app. Everything works fine but I’m worried about the app logging users ou if they are idle for 3hrs .
I’m using Jquery for the questions multi step . So they are not reloading the pages until they submit .
How do I keep the login session active for 3hrs or more . If possible never time out login session


Re: 3hrs Login session timeout

Posted: Mon Jun 10, 2024 10:44 am
by arbei

You may simply use Session keep alive interval.


Re: 3hrs Login session timeout

Posted: Mon Jul 08, 2024 3:03 am
by vintoICT

These are my confiurations

session.gc_maxlifetime : 1440 (24mins)

session.cookie_lifetime (0)
both default on the server.

session keep alive : 300

I think this shoul work well . Currently testing . Thansks


Re: 3hrs Login session timeout

Posted: Tue Jul 09, 2024 7:14 pm
by vintoICT

Some how this failed today . The client is using shared hosting and i cant change these seettings until we call support. can this work and which server event can i put it?

// 2hrs
ini_set("session.cookie_lifetime","7200");
ini_set("session.gc_maxlifetime","7200");