I have setup my first login system and have followed:
https://stackoverflow.com/a/10524305
To store some additional data without having to make multiple trips to the database.
The issue I am having is that when the cookie/ticket expires, the user is still seen to be authenticated?
For example:
HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName];
authCookie is null, but
HttpContext.Current.User.Identity.IsAuthenticated
Continues to return true.
Is there a way to force a log out if the cookie has expired?
Thanks!