G
Guest
Hi,
I am running into this problem while using Forms Authentication.
Here is the scenario...
After validating the user I set the authentication cookie
FormsAuthentication.SetAuthCookie("username|userEmail", false);
HttpContext.Current.Response.Redirect("anotherpage.aspx");
On anotherpage.aspx
HttpContext.Current.User.Identity.IsAuthenticated
some times evaluates to true and some times evaluates to false.
I have no clue why it behaves differently some times.
I am running into this problem while using Forms Authentication.
Here is the scenario...
After validating the user I set the authentication cookie
FormsAuthentication.SetAuthCookie("username|userEmail", false);
HttpContext.Current.Response.Redirect("anotherpage.aspx");
On anotherpage.aspx
HttpContext.Current.User.Identity.IsAuthenticated
some times evaluates to true and some times evaluates to false.
I have no clue why it behaves differently some times.