Touseef
Touseef

Reputation: 43

Laravel Sessions LifeTime Issues

Laravel Session Lifetime is not working it is stuck on 2 hours I have tried to reduce it and to increase it as well but when I login an check the cookies expiry it still shows 2 hours for the expiry of a session any help would be appreciated example below

'lifetime' => env('SESSION_LIFETIME', 180),

'expire_on_close' => false,

Chrome Cookies Accessible to script No (HttpOnly) Created Friday, June 7, 2019 at 8:43:25 AM Expires Friday, June 7, 2019 at 10:43:25 AM

Upvotes: 0

Views: 3781

Answers (2)

Xuân Dũng Hồ
Xuân Dũng Hồ

Reputation: 112

  1. Check your .env file first make sure you was config SESSION_LIFETIME
  2. run this command :

    php artisan config:clear

Upvotes: 6

Sunil Kashyap
Sunil Kashyap

Reputation: 2984

you need to clear cache

php artisan config:clear
php artisan cache:clear

Upvotes: 1

Related Questions