I think this is because I am remembering users.
Session gone but still logged in
Here is a funny one.
I store my users permissions in the session (they come from another db and I only want to hit it once).
If they haven't used the system for a while (days), it looks like they are still logged in (Chrome), but the session is gone.
When they try and browse to a page, my application errors out because they don't have any permissions.
I was thinking I could just check the session and send them to auth/logout, this would make them log in again and populate the session.
Mick
Create a middleware, if user is logged in and does not have the permissions, hit the other database and get the permissions. This way you can offer the remember me functionality to your users instead of forcing them to re-log.
Please or to participate in this conversation.