ASP.NET  •  Configure Membership

Listing 6. ASP.NET 2 provides default Access and SQL Server membership providers for calling membership database tables automatically. You can also write custom providers and add them to the web.config file.

<membership defaultProvider="AspNetSqlProvider2"
   userIsOnlineTimeWindow="15" >
   <providers>
      <add name="AspNetSqlProvider2"
         type="System.Web.Security.
            SqlMembershipProvider,
            System.Web, 
            Version=1.1.3300.0, 
            Culture=neutral,
         PublicKeyToken=b03f5f7f11d50a3a"
         connectionStringName=
            "AspNetConnectionString"
         enablePasswordRetrieval="true"
         enablePasswordReset="true"
         requiresQuestionAndAnswer="false"
         applicationName="/"
         requiresUniqueEmail="false"
         passwordFormat="Clear"
         description="Stores and retrieves 
            membership data from the local 
            Microsoft SQL Server database 
            file" 
      />
   </providers>
</membership>