【发布时间】:2014-07-30 19:02:21
【问题描述】:
当用户登录并保持非活动状态时,系统自动注销用户后多少秒?如何更改此设置?
【问题讨论】:
当用户登录并保持非活动状态时,系统自动注销用户后多少秒?如何更改此设置?
【问题讨论】:
假设您使用会话驱动程序来处理您的身份验证,您可以在 /app/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' => 120,
'expire_on_close' => false,
【讨论】:
auth.logout 事件。