php – Laravel 7 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.
|
*/

'expire_on_close' => true,
'expired-session-redirect' => url(env('APP_URL'))

session.gc_maxlifetime specifies the number of seconds after which data will be seen as ‘garbage’ and potentially cleaned up. Garbage collection may occur during session start (depending on session.gc_probability and session.gc_divisor).

01-19 100

11-15 1万+
08-15 986
01-11 7621
07-17 783