Click or drag to resize

Cookie Class

Represents an HTTP cookie.
Inheritance Hierarchy
SystemObject
  DotNetBrowser.CookiesCookie

Namespace:  DotNetBrowser.Cookies
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.20.0
Syntax
C#
public sealed class Cookie

The Cookie type exposes the following members.

Properties
  NameDescription
Public propertyCreationTime
Gets the cookie creation time.
Public propertyDomainName
Gets the domain name set for this cookie. It specifies allowed hosts to receive the cookie.
Public propertyExpirationTime
Gets the cookie expiration time.
Public propertyIsHttpOnly
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.
Public propertyIsSecure
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.
Public propertyIsSession
Indicates whether this cookie is a session cookie without expiration time.
Public propertyName
Gets the name of the cookie.
Public propertyPath
Gets 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 the SameSite attribute value of the cookie. This attribute denotes if your cookie is restricted to a first-party or same-site context.
Public propertyValue
Gets the value of the cookie.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also