Different sessions for different users

Hi,

In my application, normal users are signed in until they manually log
out. We also have admin users, who are also logged in until the
manually log out.

I do this by setting the session expiration date to 2038 or something
far in the future.

How can I change the session expiration date only for the admin users?
I want the admin users to be logged out whenever they close their
browser.

Thanks,
Joe

When the user logs in, just check if they’re an admin and set the session accordingly. :slight_smile:

RSL

How would you do that?

if admin + expired then
kill session + go login
end