CookieHandler.Path Property

Definition

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

public:
 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.

Exceptions

An attempt to set a null or empty value occurs.

Remarks

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