Represents a cookie object.
export interface Cookie extends CookieData
Extends: CookieData
Property | Modifiers | Type | Description | Default |
---|---|---|---|---|
domain | string | Cookie domain. | ||
expires | number | Cookie expiration date as the number of seconds since the UNIX epoch. Set to `-1` for session cookies | ||
httpOnly | boolean | True if cookie is http-only. | ||
name | string | Cookie name. | ||
partitionKey | `optional` | [CookiePartitionKey](./puppeteer.cookiepartitionkey.md) \| string | Cookie partition key. In Chrome, it is the top-level site the partitioned cookie is available in. In Firefox, it matches the source origin in the [PartitionKey](https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey). | |
partitionKeyOpaque | `optional` | boolean | True if cookie partition key is opaque. Supported only in Chrome. | |
path | string | Cookie path. | ||
priority | `optional` | [CookiePriority](./puppeteer.cookiepriority.md) | Cookie Priority. Supported only in Chrome. | |
sameParty | `optional` | boolean | True if cookie is SameParty. Supported only in Chrome. | |
sameSite | `optional` | [CookieSameSite](./puppeteer.cookiesamesite.md) | Cookie SameSite type. | |
secure | boolean | True if cookie is secure. | ||
session | boolean | True in case of session cookie. | ||
size | number | Cookie size. | ||
sourceScheme | `optional` | [CookieSourceScheme](./puppeteer.cookiesourcescheme.md) | Cookie source scheme type. Supported only in Chrome. | |
value | string | Cookie value. |