> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CookieOptions

Input options for defining a cookie to be added with 'addCookies'.

## Definition

```graphql theme={null}
input CookieOptions {
  name: String!
  value: String!
  domain: String!
  path: String!
  expires: Int!
  httpOnly: Boolean!
  secure: Boolean!
  sameSite: SameSite!
}
```

## Fields

### `name`

[String!](/reference/graphql/scalars/string)

The name of the cookie. Example: `"user_preference"`.

### `value`

[String!](/reference/graphql/scalars/string)

The value of the cookie. Example: `"theme=dark"`.

### `domain`

[String!](/reference/graphql/scalars/string)

The domain for which the cookie is valid. Example: `".example.com"`.

### `path`

[String!](/reference/graphql/scalars/string)

The path for which the cookie is valid. Example: `"/"`.

### `expires`

[Int!](/reference/graphql/scalars/int)

Expiration date as a Unix timestamp in seconds. Use -1 for session cookies.

### `httpOnly`

[Boolean!](/reference/graphql/scalars/boolean)

If true, the cookie is only accessible via HTTP and not client-side scripts.

### `secure`

[Boolean!](/reference/graphql/scalars/boolean)

If true, the cookie will only be sent over secure (HTTPS) connections.

### `sameSite`

[SameSite!](/reference/graphql/enums/same-site)

SameSite attribute for the cookie (STRICT, LAX, NONE). See `SameSite` enum.
