Cookie
Cookie class represents a cookie in the BrowserContext.
See the HTTP Cookies documentation on the Mozilla website for more details about cookies.
Products
LGTM+ Stack
Key Capabilities
Observability Solutions
Deploy The Stack
Open Source
Community resources
Dashboard templates
Try out and share prebuilt visualizations
Prometheus exporters
Get your metrics into Prometheus quickly
end-to-end solutions
Opinionated solutions that help you get there easier and faster
monitor infrastructure
Out-of-the-box KPIs, dashboards, and alerts for observability
visualize any data
Instantly connect all your data sources to Grafana
Learn
Stay up to date
Technical learning
Docs
Get started
Get started with Grafana
Build your first dashboard
Get started with Grafana Cloud
What's new / Release notes
Help build the future of open source observability software Open positions
Check out the open source projects we support Downloads
Deploy The Stack
end-to-end solutions
Opinionated solutions that help you get there easier and faster
visualize any data
Instantly connect all your data sources to Grafana
Cookie class represents a cookie in the BrowserContext.
See the HTTP Cookies documentation on the Mozilla website for more details about cookies.
Property | Type | Default | Description |
---|---|---|---|
name | string | "" | The cookie’s name. Required. |
value | string | "" | The cookie’s value. Required. |
domain | string | "" | The cookie’s domain. |
path | string | '/' | The cookie’s path. |
url | string | "" | The cookie’s URL. |
expires | number | -1 | The cookie’s expiration date as the number of seconds since the UNIX epoch. -1 means a session cookie. |
httpOnly | bool | false | A cookie is inaccessible to the JavaScript document.cookie API when this property is true . |
secure | bool | false | The cookie’s secure flag. |
sameSite | string | 'Lax' | The cookie’s same site flag. It can be one of 'Strict' , 'Lax' , and 'None' . |