Jump to content

session expiration


searls03

Recommended Posts

or you can use

ini_set("session.gc_maxlifetime", "18000"); 

 

which will increase the max lifetime of a session to whatever time you set. However I believe that this script must be placed in every file that you wish to increase the expiration time on

 

Link to comment
Share on other sites

is there a way to set sessions to expire after a time of inactivity, not activity?

 

That is how they currently work.

That's not how it is on mine.  Mine just randomly logs out in the middle of doing something.  Even when there is Activity.  By the way, my php.ini file is not accessible.  On my host it is a server file that would affect all websites that use their server. 
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.