Relative Content

Tag Archive for phplaravellaravel-8

Change session timeout based upon user type/group

I have a unique situation here. In a site I am currently writing we need the session timeout to be 30 minutes if you are an admin and 1 hour if you are a regular user. I can’t seem to find any documentation in Laravel where you can change the session timeout based upon the user group or dynamically. I am needing to change the timeout for the current session not all sessions.