문제

What is the purpose of websecurity.cs, if I can do this using the FormAuthentication and the Membership classes in System.Web.Security why would I need a class to do the same?

도움이 되었습니까?

해결책

WebSecurity is developed for ASP.NET Web Pages. It is a simpler API for accessing the regular SimpleMembershipProvider.

You can use it to access the most frequently used security features. So it's not really a replacement for your FormsAuthentication and Membership classes. Instead it's a wrapper that simplifies development.

The MSDN Documentation shows how and when to use the class.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top