Why InitializeSimpleMembershipAttribute in MVC 4 app

后端 未结 7 1892
误落风尘
误落风尘 2020-12-29 05:07

I think my understanding on SimpleMembershipProvider is almost 60% and the rest is getting to know how it internally work.

You can quickly found some is

7条回答
  •  盖世英雄少女心
    2020-12-29 05:48

    The reason for the InitializeSimpleMembership filter and its overly complex code is for the case when a developer might decide not to use forms authentication, then the template generated code will still work correctly. If you will always use forms authentication you can initialize SimpleMembership in the Application_Start method of the Global.asax. There are detailed instructions on how to do this here.

提交回复
热议问题