I am getting mad regarding why would HttpContext.Current.User.Identity.IsAuthenticated return false in LoggedIn event in Login control?
I type the correct username and password and hence I am in loggedin event but yet the IsAuthenticated is false!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is because the page hasn’t been posted back since the user logged in. The entire User object is not filled out yet, this is a known behavior.
See this very informative blog post:
http://forums.asp.net/t/982749.aspx
Also credit for the above link goes to this related SO QA:
Get UserID from ASP.Net Login control LoggedIn event