System.Web.HttpCookie.Path Property

Gets or sets the virtual path to transmit with the current cookie.

Syntax

public string Path { set; get; }

Value

The current path value, by default it is "/".

Remarks

The HttpCookie.Path property extends the HttpCookie.Domain property to completely describe the specific URL to which the cookie applies. For example, in the URL http:/www.microsoft.com/asp, the domain is www.microsoft.com and the path is /asp.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0