Allow session lifetime to be set in env variables (#1170)
* Allow session lifetime to be set in env variables Currently the session live time defaults to 2 hours, adding an env variable will allow us to change this on a per site basis * Add whitespace for consistency
This commit is contained in:
parent
5094fce4b0
commit
fca04e6b0c
@ -16,7 +16,7 @@ return [
|
||||
*/
|
||||
|
||||
'driver' => env('SESSION_DRIVER', 'file'),
|
||||
'lifetime' => 120,
|
||||
'lifetime' => env('SESSION_LIFETIME', 120),
|
||||
'expire_on_close' => false,
|
||||
'encrypt' => false,
|
||||
'files' => storage_path('framework/sessions'),
|
||||
|
Loading…
Reference in New Issue
Block a user