Reputation: 1035
I am a pretty beginner developer with asp.net mvc c#, I am so wonder, when user log in using membership provider, where is the place that set the session of the user log in success or fail? When user log in success, I found is this.HttpContext.User.Identity.IsAuthenticated
set to true, But where is the place that set it to true?
Waiting for your answer. Thank you.
Upvotes: 1
Views: 723
Reputation: 1065
When using asp.net membership the session cookie is set automatically by the provider. See http://msdn.microsoft.com/en-us/library/9fw3ef80%28v=vs.100%29.aspx, for some additional help.
Upvotes: 1
Reputation:
asp.net authentication module does that for you. you are not going to find that in your code, unless you wrote something custom in that area.
Upvotes: 1