I'm using FormsAuthentication and need to track a user id (int) along with
the user name. I was trying to store the user id under the Session but if
the user closes the browser and opens another browser and goes back to the
page the user is still logged in.
I have 2 choices:
1 - Log the user out whenever the browser is closed
2 - Store the user id in a cookie.
I would prefer option 1 but I don't know how to Sign out the user when the
browser is closed and the session is no longer valid.