MembershipProvider - ¿Cookie o Sesión?

What does MembershipProvider class in ASP.NET use to authenticate users on the HTTP level? Is it Cookie or Session?

preguntado el 26 de septiembre de 13 a las 20:09

1 Respuestas

Respuesta corta:

Galletas.

Respuesta larga:

Ninguno de los dos. La MembershipProvider class itself does not concern itself with HTTP session state. MembershipProvider is an abstract base class whose child classes define different ways to manage users, their passwords, etc.

However, ASP.NET uses the FormsAuthentication class by default to set a difficult-to-guess authentication cookie when the user gets logged in (after authenticating with MembershipUtil. This in turn allows ASP.NET to populate the HttpContext.Current.User property during each request.

Respondido el 20 de junio de 20 a las 10:06

do you have link for my reference? - rajeemcariazo

@rajeem_cariazo: Turns out I wasn't quite right. See my updated answer. - StriplingGuerrero

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.