Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
"HttpContext.Current.User.Identity.IsAuthenticated" is false after successfully login on IE version only.

The code was working before but suddenly it is not working on IE on testing server only. On chrome and firefox its working.

I moved the code on production and integration server, and it is working properly on other server's. I am not getting the issue with testing server. only on testing server the value of "HttpContext.Current.User.Identity.IsAuthenticated" is getting false after successfull login.
Posted
Comments
Timberbird 16-Mar-15 4:09am    
Though this is most probably not your case (considering that your problem only appears on IE), I recently ran into similar issue and eventually found out the reason was a migration to .NET 4.5, where authentication token is calculated differently. So if you have one domain auth cookie and several web applications under the same domain, and you've switched to using .NET 4.5 from earlier version recently, consider enabling compatibility mode.
Otherwise it's always a good idea to clean all cookies :)
Gayatri Deshmukh 16-Mar-15 9:07am    
I cleaned my cookies and browsing history, also went through the IE security setting but it doesn't worked.
Migration of framework is also not done.
and most confusing thing is, its working on few machines only with IE11 browser, and it is independent of OS.

I also though of cookies issue so i put the following code but still it doesnt worked.

FormsAuthentication.SetAuthCookie(txtUsername.Value, true);


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900