website/versioned_docs/version-24.40.0/api/puppeteer.cookie.md
Represents a cookie object.
export interface Cookie extends CookieData
Extends: CookieData
Property
</th><th>Modifiers
</th><th>Type
</th><th>Description
</th><th>Default
</th></tr></thead> <tbody><tr><td><span id="expires">expires</span>
</td><td> </td><td>number
</td><td>Cookie expiration date as the number of seconds since the UNIX epoch. Set to -1 for session cookies
<span id="partitionkeyopaque">partitionKeyOpaque</span>
</td><td>optional
boolean
</td><td>True if cookie partition key is opaque. Supported only in Chrome.
</td><td> </td></tr> <tr><td><span id="path">path</span>
</td><td> </td><td>string
</td><td>Cookie path.
</td><td> </td></tr> <tr><td><span id="secure">secure</span>
</td><td> </td><td>boolean
</td><td>True if cookie is secure.
</td><td> </td></tr> <tr><td><span id="session">session</span>
</td><td> </td><td>boolean
</td><td>True in case of session cookie.
</td><td> </td></tr> <tr><td><span id="size">size</span>
</td><td> </td><td>number
</td><td>Cookie size.
</td><td> </td></tr> </tbody></table>