Laravel's session garbage collection will respect the session lifetime config that you set - it should not destroy session data unless it is older than the specified $lifetime
Mar 10, 2016
6
Level 1
Session randomly expires
I have a question, why my session randomly expires when I set up the settings to expire in 1000 minutes? Any help on that? I have read somethign about session.gc_maxlifetime but not sure where to change those values in laravel.
This is my config.sessions
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => 1000,
'expire_on_close' => true,
'encrypt' => false,
'files' => storage_path('framework/sessions'),
'connection' => null,
'table' => 'sessions',
'lottery' => [2, 100],
'cookie' => 'laravel_session',
'path' => '/',
'domain' => null,
'secure' => false,
Level 104
1 like
Please or to participate in this conversation.