I am fairly new to PHP and am running an open source web application called 开发者_JS百科GLPI. We have several users that have the application open all day long and after a while they have to log back on the application. Is this the Apache session timing out? If so what is the default and how do I change it.
Try setting the session lifetime to a day (24*60*60 seconds):
In your php.ini:
session.gc_maxlifetime = 86400
In the code:
ini_set( 'session.gc_maxlifetime' ,86400);
http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
精彩评论