Laravel应用程序不断将用户注销


Laravel App kept logging users out

最近,我的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分钟后过期。