FormsAuthenticationUserCollection Class
Assembly: System.Web (in system.web.dll)
The FormsAuthenticationCredentials uses the FormsAuthenticationUserCollection to programmatically access and modify the users element of the credentials section in the forms section of the authorization configuration section.
This type is part of a group that includes the FormsAuthenticationConfiguration, the FormsAuthenticationCredentials, and the FormsAuthenticationUser types.
The following code example shows how to obtain the FormsAuthenticationUserCollection object from the configuration file of an existing Web application.
Note: |
|---|
|
If you use the credentials element be sure to follow the guidelines explained at ASP.NET Authentication. For scalability and better security, it is recommended you use an external database to store the users' credentials. For more information about building secure ASP.NET applications, search the Microsoft MSDN Web site (msdn.microsoft.com) for "Securing Your ASP.NET Application" and "Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication." |
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.FormsAuthenticationUserCollection
Reference
FormsAuthenticationUserCollection MembersSystem.Web.Configuration Namespace
Other Resources
authentication Element (ASP.NET Settings Schema)forms Element for authentication (ASP.NET Settings Schema)
ASP.NET Authentication
Forms Authentication Credentials
Forms Authentication Provider
Forms Authentication Across Applications
Note: