活动会话登录 - laravel

有没有办法让进入应用程序的用户不注销?

例如,如果用户关闭应用程序,我需要将其打开并且不需要再次重新登录。


元芳怎么了
浏览 107回答 1
1回答

撒科打诨

在你的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
打开App,查看更多内容
随时随地看视频慕课网APP