A few days ago, I started to contact membership. I was confused, so I found some information and sent this blog: A Discussion about the practicality of membership.
However, I still feel unable to understand membership. So today I read a lot of information to further understand membership.
In earlier versions, the ASP. NET 2.0 Framework was provided with two member identities. Program :
Accessmembershipprovider And
Sqlmembershipprovider . The official version is no longer available
Accessmembershipprovider , Only
Sqlmembershipprovider . To use other databases or custom user information, you must write your own
Membershipprovider In the Web. config file:
<Configuration> <system. Web> <membership defaultprovider = "provider name"/> </system. Web> </configuration> |
UseSqlmembershipproviderIn the Web. config file, you can modify the strict requirements (password length, complexity, etc ):
The configuration principle is that the settings in Web. config overwrite the default settings of machine. config, which simplifies the complexity of user registration.
This articleArticle(Read) detailed introductionSqlmembershipprovider.
The above information only introducesMembershipproviderHow to Implement customMembershipproviderWhat about it? I found this article and introduced how to customize an access-basedMembershipprovider,Download the source code of the instance.
Microsoft also provides Sample access providers for download.