会话随机过期

时间:2015-09-04 07:51:34

标签: session laravel session-cookies

我的项目有一个奇怪的问题。当用户登录到laravel_session和XSRF-TOKEN的Web应用程序到期时间设置为当前时间戳时。

问题是用户随机退出。我认为问题在于会话cookie,我不知道如何解决这个问题。

有人知道问题在哪里

这是我的会话配置:

'driver' => env('SESSION_DRIVER', 'file'),

    /*
    |--------------------------------------------------------------------------
    | 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,

    'expire_on_close' => false

0 个答案:

没有答案