Table of Contents

Class Cookie

Namespace
DotNetBrowser.Cookies
Assembly
DotNetBrowser.dll

Represents an HTTP cookie.

public sealed class Cookie
Inheritance
Cookie
Inherited Members

Properties

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.

Methods

ToString()