CookieHandler.Path CookieHandler.Path CookieHandler.Path CookieHandler.Path Property


Gets or sets the virtual path for cookies written by the handler.

 virtual property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public virtual string Path { get; set; }
member this.Path : string with get, set
Public Overridable Property Path As String

Property Value

The virtual path. Defaults to the root of the ASP.NET application.


An attempt to set a null or empty value occurs.


This property corresponds to the HttpCookie.Path property.

The property can be initialized by specifying the path attribute on the <cookieHandler> element in configuration.

Applies to