3hrs Login session timeout

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
vintoICT
User
Posts: 435

3hrs Login session timeout

Post 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


arbei
User
Posts: 9719

Post by arbei »

You may simply use Session keep alive interval.


vintoICT
User
Posts: 435

Post 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


vintoICT
User
Posts: 435

Post 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");


Post Reply