by Jane Thomson
6. October 2010 20:51
ASP.NET Membership features with .net Framework 4
Membership provider is a standalone feature in the ASP.NET to provide the authentication; it can easily be integrated with the role management functionality in order to provide the authorization servicing feature for the website. If needed, membership provider can also be integrated with the user profile provider in order to make available the application related customization for individual users.
The membership features can be used in order to authenticate the users either in the website or in the application built with ASP.NET. Generally, users can use membership features to provide the pages of log in such as to create a new log in or to request for the new password with forgot password page. Virtually, ASP.NET encapsulates all the required logic, prompts the users for the login details and validates the login credentials to allow the access to the membership area. In fact, default template for creating such pages includes most of these basic functionalities about login. Let’s say, if user has already created an application to use the authentication form. ASP.NET will by default display the authentication page if it is requested by the unauthenticated users.
If a user uses the login controls or project templates from the ASP.NET, membership provider to validate the user credentials will by default be used. If a user decides to use the customized login controls, it is necessary to use the validateuser method to validate the user credentials. After validating the user information, it can be stored such as encrypted cookie in user’s machine (if user’s machine allows doing so). The membership provider will automatically use this feature. However, if you are using the customized login controls, Forms Authentication control can be used to generate the cookies in order to store it into the user’s machine. The membership credentials can also provide the features to recover password with the recover password and reset password user controls.