Description of attributes in Web. config when using membership

Source: Internet
Author: User
Name Description
Name Providers name
Type Type. The SQL format is system. Web. Security. sqlmembershipprovider.
Connectionstringname Connection string name
Enablepasswordretrieval Whether to allow users to retrieve their passwords (useless things, conflicting with the Mechanism) is usually false
Enablepasswordreset Allow users to reset their passwords
Requiresquestionandanswer Whether to ask the user to answer the password prompt question during password reset and Retrieval
Applicationname Identify an applicationProgramUnique users with the same user name can correspond to multiple ASP. NET applications with the specified applicationname
Requiresuniqueemail Whether the user email is required to be unique
Passwordformat Password encryption method, three values: clear --> not encrypted, hashed --> hash encryption, encrypted
Maxinvalidpasswordattempts Maximum number of login attempts, locked upon failure
Minrequiredpasswordlength Minimum Password Length
Minrequirednonalphanumericcharacters Number of special characters in the password
Passwordattemptwindow Maximum number of Logon times, in minutes
Passwordstrengthregularexpression Regular Expression in password format

The Web. config file is added as follows: < Connectionstrings >
< Clear />
< Add Name = "Localsqlserver" Connectionstring = "" />
</ Connectionstrings >
< System . Web >
< Membership >
< Providers >
< Clear />
< Add Name = "Custommembershipprovider"  
Type = "System. Web. Security. sqlmembershipprovider"  
Connectionstringname = "Localsqlserver"  
<! -- Other attributes -- >
/>
</ Providers >
</ Membership >
</ System. Web >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.