开发者

Apache/PHP application sessions timing out

开发者 https://www.devze.com 2023-02-06 06:29 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消