RoleManagerSection::CookieName Property
Gets or sets the name of the cookie that is used to cache role names.
Assembly: System.Web (in System.Web.dll)
[TypeConverterAttribute(typeof(WhiteSpaceTrimStringConverter))] [StringValidatorAttribute(MinLength = )] [ConfigurationPropertyAttribute(L"cookieName", DefaultValue = L".ASPXROLES")] public: property String^ CookieName { String^ get (); void set (String^ value); }
Property Value
Type: System::StringThe name of the cookie used to cache role names. The default is ".ASPXROLES".
The CookieName property returns the name of the cookie that is used to cache role names. You can specify the name of the cookie where roles are cached for your application by setting the cookieName attribute in the Web.config file for your ASP.NET application. This is useful when you want to uniquely identify a cookie for your application or when a cookie is shared across multiple applications.
The following code example demonstrates how to use the CookieName property. This code example is part of a larger example provided for the RoleManagerSection class.
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.