RoleManagerSection::CookiePath Property
Gets or sets the virtual path of the cookie that is used to cache role names.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute(L"cookiePath", DefaultValue = L"/")] [TypeConverterAttribute(typeof(WhiteSpaceTrimStringConverter))] [StringValidatorAttribute(MinLength = )] public: property String^ CookiePath { String^ get (); void set (String^ value); }
Property Value
Type: System::StringThe path of the cookie used to store role names. The default is "/".
You can specify the path of the cookie where role names are cached for your application by setting the cookiePath attribute in the Web.config file for your ASP.NET application. The CookiePath property returns the value of the cookiePath attribute from the Web.config file. The path is case sensitive.
The following code example demonstrates how to use the CookiePath 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.