最近,我的Laravel网站一直在很短的时间内将我注销-maybe
大约需要30秒。。。
我应该检查或调查什么?如何调试?
在config/session.php
中
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
我有'lifetime' => 2,
,我应该增加吗?
还有什么可能导致应用程序注销?
它在注释中说"指定您希望会话在到期前保持空闲的分钟数"。
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => 120,
以上内容将在两小时后过期,您的内容将在2分钟后过期。