I run multiple websites from a single laravel app. Is it possible to have different session lifetimes for them?
E.g. one site should have the standard 2 hours and another should be 1 year
I run multiple websites from a single laravel app. Is it possible to have different session lifetimes for them?
E.g. one site should have the standard 2 hours and another should be 1 year
You can set a variable for each domain in the .env file:
SESSION_LIFE_TIME=160
and call this variable in your config file:
'lifetime' => env('SESSION_LIFE_TIME', 120),
Hope this works for you.