Click or drag to resize

Builder Properties

The CookieBuilder type exposes the following members.

Properties
  NameDescription
Public propertyDomainName
Gets the domain name for this cookie.
Public propertyExpirationTime
Gets or sets cookie expiration time.
Public propertyHttpOnly
Gets or sets the HttpOnly attribute. The HttpOnly cookie attribute can help to mitigate hijacking and XSS attacks by preventing access to cookie value through JavaScript.
Public propertyName
Gets or sets the name of the cookie.
Public propertyPath
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 propertySameSite
Gets or sets the SameSite attribute value of the cookie. This attribute denotes if your cookie should be restricted to a first-party or same-site context.
Public propertySecure
Gets or sets the Secure attribute value of the cookie. A secure cookie is only sent to the server with an encrypted request over the HTTPS protocol.
Public propertyValue
Gets or sets the value of the cookie.
Top
See Also