Level 1
@MikkyX I had this question too - did you ever figure anything out on this?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Is there a way in Laravel to vary the session timeout according to the user type? For example, we might want customers on an e-commerce site to timeout after 20 minutes, but administrators would get a longer timeout to protect them against being logged out halfway through any lengthy processes in the admin.
I know Laravel has the lifetime variable in config/session.php, but that's global - I need it to be more fine tuned if possible.
Please or to participate in this conversation.