Builder Properties |
The CookieBuilder type exposes the following members.
| Name | Description | |
|---|---|---|
| DomainName |
Gets the domain name for this cookie.
| |
| ExpirationTime |
Gets or sets cookie expiration time.
| |
| HttpOnly |
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.
| |
| Name |
Gets or sets the name of the cookie.
| |
| Path |
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.
| |
| SameSite |
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.
| |
| Secure |
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.
| |
| Value |
Gets or sets the value of the cookie.
|