titi
titi

Reputation: 1035

Session user in membership provider of asp.net mvc c#

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

Answers (2)

Brownman98
Brownman98

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

user191966
user191966

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

Related Questions