加大了默认的超时PHP应用程序 [英] Upping the default timeout for a PHP application
本文介绍了加大了默认的超时PHP应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个PHP应用程序( GLPI )在Apache上运行。什么是默认的会话超时,我如何改变呢?
I have a PHP application (GLPI) running on Apache. What is the default session timeout and how do I change it?
推荐答案
默认会话时间为1440秒(24分钟)。
The default session time is 1440 seconds (24 minutes).
和则可以通过配置文件更改的php.ini
或的.htaccess
。
And you can change it through the configuration files php.ini
or .htaccess
.
使用的php.ini
,
session.gc_maxlifetime = 2000;
使用的.htaccess
,
ini_set( 'session.gc_maxlifetime' , 2000);
这篇关于加大了默认的超时PHP应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文