Cookie Class |
Namespace: DotNetBrowser.Cookies
public sealed class Cookie
The Cookie type exposes the following members.
Name | Description | |
---|---|---|
![]() | CreationTime |
Gets the cookie creation time.
|
![]() | DomainName |
Gets the domain name set for this cookie. It specifies allowed hosts
to receive the cookie.
|
![]() | ExpirationTime |
Gets the cookie expiration time.
|
![]() | IsHttpOnly |
Gets the HttpOnly attribute value of the cookie.
The HttpOnly cookie attribute can help to mitigate hijacking and XSS attacks
by preventing access to cookie value through JavaScript.
|
![]() | IsSecure |
Gets the Secure attribute value of the cookie.
A secure cookie is only sent to the server with an encrypted
request over the HTTPS protocol.
|
![]() | IsSession |
Indicates whether this cookie is a session cookie without
expiration time.
|
![]() | Name |
Gets the name of the cookie.
|
![]() | Path |
Gets 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 the SameSite attribute value of the cookie.
This attribute denotes if your cookie is restricted to a first-party or same-site context.
|
![]() | Value |
Gets the value of the cookie.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Overrides ObjectToString.) |