Forms Authentication Fails some times

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top