Table of Contents

Property Path

Namespace
DotNetBrowser.Cookies
Assembly
DotNetBrowser.dll

Gets or sets the path on the server to which the browser returns this cookie. The cookie is visible to all sub-paths on the server.

public string Path { get; set; }

Property Value

string

The path on the server, for example, /catalog.

Path indicates a URL path that must exist in the requested URL in order to send the Cookie header. The %x2F ("/") character is considered a directory separator, and subdirectories will match as well.

For example, if Path=/docs is set, these paths will match:

  • /docs
  • /docs/Web/
  • /docs/Web/HTTP

Exceptions

ArgumentException

The value is null, empty or blank.