# CookiesSetDetails

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

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

Describes the cookie to set.

## Properties

- **`domain`** (`string`, optional)
  Domain for the cookie. Will be normalized with a preceding dot in order to be valid for subdomains too.
- **`expirationDate`** (`number`, optional)
  The expiration date of the cookie as a number of seconds since the UNIX epoch.
  If not specified, the cookie will become a session cookie and won't be persisted between sessions.
- **`httpOnly`** (`boolean`, optional) default: `false`
  If `true`, the cookie will be marked with an `HttpOnly` attribute.
- **`name`** (`string`, optional)
  Name for the cookie.
- **`path`** (`string`, optional)
  Path for the cookie.
- **`sameSite`** (`("unspecified" | "no_restriction" | "lax" | "strict")`, optional) default: `"lax"`
  The value to be applied to the `SameSite` attribute. If set to "no_restriction", the `secure` property will be automatically set to `true`.
- **`secure`** (`boolean`, optional) default: `false`
  If `true`, the cookie will be marked with a `Secure` attribute. Default is `false`, unless the `SameSite` attribute has been set to `None`.
- **`url`** (`string`, required)
  URL to associate with the cookie.
- **`value`** (`string`, optional)
  Value for the cookie.
