diff --git a/.env.example b/.env.example index 668c06f0..91ba58f0 100644 --- a/.env.example +++ b/.env.example @@ -15,6 +15,7 @@ DB_PASSWORD=secret BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIVER=file +SESSION_LIFETIME=120 QUEUE_DRIVER=sync REDIS_HOST=127.0.0.1 diff --git a/config/session.php b/config/session.php index 71ad0ed1..736fb3c7 100644 --- a/config/session.php +++ b/config/session.php @@ -29,7 +29,7 @@ | */ - 'lifetime' => 120, + 'lifetime' => env('SESSION_LIFETIME', 120), 'expire_on_close' => false,