Laravel Inactivity time setting

前端 未结 1 1345
小蘑菇
小蘑菇 2020-12-17 09:10

When user logged-in and remains inactive, How many seconds after that system logouts the user automatically? How to change this setting?

相关标签:
1条回答
  • 2020-12-17 10:05

    Assuming you are using the session driver to handle your authentication, you can change the time period for an idle session to expire in the /app/config/session.php 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 讨论(0)
提交回复
热议问题