When a user logs in a random session ID is generated and stored in their database table row and also in their session variable. Before any authenticated part of the site is accessed, there is a check to see if the session ID stored in the session variable is the same as that in the user’s table row.
My question is, is that any safer than just setting a boolean flag in the session variable?
Thanks