The namespace contains classes that are used to implement ASP.NET security in Web server applications. The class is used by ASP.NET applications to validate user credentials and manage user settings such as passwords and e-mail addresses. The class enables you to manage authorization for your application based on groups of users assigned to roles in the Web application. Both the class and the class work with providers, classes that access your application's data store to retrieve membership and role information. Membership and role information can be stored in a Microsoft SQL Server database using the and classes; in an Active Directory using the and classes, or in a custom data source using implementations of the and classes. You configure ASP.NET membership using the membership Element (ASP.NET Settings Schema). When an application using membership is accessed, ASP.NET creates an instance of the class that you can use to query membership information. Provider-specific implementations of the class contain information about the user accessing the page. You can create custom implementations of the class for your application. You configure ASP.NET roles using the roleManager Element (ASP.NET Settings Schema). ASP.NET creates an instance of the class that contains information about the role membership of the current user. ASP.NET provides server controls that interact with the class and the class. The , , and controls work with the class to simplify creating an authenticated Web application, and the control uses role-specific templates to customize Web pages for specific groups of users.