Roles.MaxCachedResults Property
.NET Framework 2.0
Gets the maximum number of role names to be cached for a user.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Roles Members
System.Web.Security Namespace
Assembly: System.Web (in system.web.dll)
The following example shows the roleManager element in the system.web section of the Web.config file for an ASP.NET application. It specifies that the application uses a SqlRoleProvider instance and sets the maxCachedResults attribute to 10.
<roleManager enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" maxCachedResults="10" />
Reference
Roles ClassRoles Members
System.Web.Security Namespace
Other Resources
Understanding Role ManagementCommunity Additions
ADD
Show: