撒科打诨
在你的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