有没有办法让进入应用程序的用户不注销?例如,如果用户关闭应用程序,我需要将其打开并且不需要再次重新登录。
1 回答
撒科打诨
TA贡献1934条经验 获得超2个赞
在你的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' => env('SESSION_LIFETIME', 120), // either change in your .env file, if there, or the default number to 9999 (minutes)
'expire_on_close' => false, // this is what you are looking for
- 1 回答
- 0 关注
- 106 浏览
添加回答
举报
0/150
提交
取消