Level 67
Not really, especially with csrf.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
After installing Laravel 5, the session lifetime is set to 120 minutes:
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
I would like to increase it to, let's say, 360 minutes or more but I wonder if there is some reason why I should avoid long session lifetime... Is there any risk or disadvantage?
Please or to participate in this conversation.