Laravel Inactivity time setting

喜欢而已 提交于 2019-12-09 02:20:19

问题


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


回答1:


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,


来源:https://stackoverflow.com/questions/24133830/laravel-inactivity-time-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!