# Cookie

**Kind**: interface | **Module**: [Cookies](https://docs.interop.io/desktop/reference/javascript/cookies/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/cookies/cookie/index.html

Describes a cookie.

## Properties

- **`domain`** (`string`, optional)
  Domain for the cookie. Normalized with a preceding dot in order to be valid for subdomains too.
- **`expirationDate`** (`number`, optional)
  Expiration date of the cookie as a number of seconds since the UNIX epoch. Not available for session cookies.
- **`hostOnly`** (`boolean`, optional)
  If `true`, the cookie has been flagged as a host-only cookie. Will be `true` only if the `domain` property hasn't been set.
- **`httpOnly`** (`boolean`, optional)
  If `true`, the cookie has been marked with the `HttpOnly` attribute.
- **`name`** (`string`, required)
  Name of the cookie.
- **`path`** (`string`, optional)
  Path for the cookie.
- **`sameSite`** (`("unspecified" | "no_restriction" | "lax" | "strict")`, required)
  The value applied to the `SameSite` attribute. Can be `"unspecified"`, `"no_restriction"`, `"lax"` or `"strict"`.
- **`secure`** (`boolean`, optional)
  If `true`, the cookie has been marked with a `Secure` attribute.
- **`session`** (`boolean`, optional)
  If `true`, the cookie is a session cookie. If `false`, the cookie is a persistent cookie with an expiration date.
- **`value`** (`string`, required)
  Value of the cookie.
