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:
Andrew Roberts 2021-05-05 13:51:18 +01:00 committed by GitHub
parent 5094fce4b0
commit fca04e6b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'),