Gets or sets a value indicating whether the current user's roles are cached in a cookie.
Assembly: System.Web (in System.Web.dll)
The property returns a Boolean value indicating whether cookie storage for role names is enabled.
When the property is set to true in the configuration file, role information for each user is stored in a cookie on the client. When role management checks to determine whether a user is in a particular role, the roles cookie is checked before calling the role provider to check the list of roles at the data source. The cookie is dynamically updated on the client to cache the most recently validated role names.
You can improve the reliability of the role names that are cached in a cookie by specifying a CookieProtection property when you configure the roleManager section of the configuration file. The default CookieProtection property is All, which encrypts role names in the cookie and validates that the cookie contents have not been altered.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.