CookieBuilder Class |
Namespace: DotNetBrowser.Cookies
public class Builder
The CookieBuilder type exposes the following members.
Name | Description | |
---|---|---|
CookieBuilder |
Creates a new Cookie builder.
|
Name | Description | |
---|---|---|
CreationTime |
Gets or sets cookie creation time.
| |
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.
|
Name | Description | |
---|---|---|
Build |
Builds an HTTP cookie.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |