Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vedoj's avatar
Level 1

Where to setup how long the login will stay?

Is there a simple (or hard) way how to set the length of a logged in user session? In which file can I edit that?

0 likes
1 reply
vincent15000's avatar
Level 63

The lifetime is defined in the session configuration file and is by default 120 minutes long.

'lifetime' => env('SESSION_LIFETIME', 120),
1 like

Please or to participate in this conversation.