I am using forms authentication with my ASP.NET application.
I have tested that it works correctly as far as logging in is concerned:
1. Prior to logging in I can't access pages for which access is denied for anonymous users (even if I paste the URL of the pages directly in the browser).
2. After logging in I can access all pages. I use the following code as part of my login
FormsAuthentication.RedirectFromLoginPage(tbUsername.Text,false);
FormsAuthentication.SetAuthCookie(tbUsername.Text,false);
I created a logout menu option which, when selected calls the following:
FormsAuthentication.Signout()
My problem is that the Signout command doesn't appear to work - after calling this function I am still able to access the pages with anonymous access denied (by pasting the URL of page in the browser).
What am I doing wrong here?
Thanks!