I'm testing some cookies that I'm creating via JavaScript. Is there a way to check if the cookie was set in Chrome Developer Tools or something similar?
7 Answers
To check the current page's cookies using Chrome:
Option 1
- Open Developer Tools (usually F12)
- Click the "Application" tab (used to be "Resources")
- Expand the "Cookies" list item
- Click any list item.
You can view cookies in detail here, and clear them out (click any list item under cookies then click the cancel icon on the bottom left of the table).
Option 2
Use the javascript console, e.g. document.cookie
. Less sophisticated (graphically), but you can work with the data using javascript. Note that the results will be restricted based on how websites are allowed to access local data from other sites (see MDN Same-origin policy).
Option 3
There is also chrome://settings/siteData
(was previously settings/cookies). Just put the url into Chrome's address field.

- 9,842
- 7
- 42
- 64
-
10In recent versions of Developer Tools the tab is called "Application" – Alf Kåre Lefdal Jul 29 '16 at 09:01
-
This is out of date. The updated location is here: https://stackoverflow.com/a/48083367/4842949 – Joseph Cho Feb 19 '19 at 18:27
-
2Why the `document.cookie` no contain of some cookies, but I can see that in the `chrome://settings/siteData` ?!!! – Nabi K.A.Z. May 05 '19 at 07:30
-
2@NabiK.A.Z. Likely chrome is showing you cookies from a different domain. See “same origin policy” – AlexMA May 06 '19 at 00:31
-
1@AlexMA No, seem the problem caused of option `HTTP Only` cookie, but the site opened on the HTTPS. But does can not see cookies in console by js, of same domain on the HTTPS?! – Nabi K.A.Z. May 06 '19 at 10:18
-
2@NabiK.A.Z. The `HttpOnly` tag on cookies is somewhat misleading, but it does _not_ mean the cookie is only sent when the protocol is http (vs https). The meaning of an `HttpOnly` cookie is that it is sent by the browser but it is _not_ visible to JS. This is not to be confused with the `Secure` tag on cookies, which means the browser will only send it to sites using https (but which has no effect on the cookie's visibility in JS). There's a good description on: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies – Chris Rice Dec 11 '19 at 21:18
In your console, type document.cookie
. It will return the active cookies for that page.

- 2,721
- 1
- 19
- 14
-
1Over the last week I'm starting to realize how awesome the JS console is! Thanks! – Howdy_McGee Apr 04 '12 at 16:16
-
In Linux the JS console is just the [CTRL]+[Shift]+i keys away... and a click on the "Console" tab. – psiphi75 Jul 05 '13 at 12:36
-
@DaFi4 Yes, Also I have this problem. The `document.cookie` no contain of some cookies, but I can see that in the `chrome://settings/siteData` !!! – Nabi K.A.Z. May 05 '19 at 07:32
-
It will return the active cookies for that page. - This worked for me , Thanks. – Subham Tripathi May 14 '20 at 06:32
Latest version of Chrome (v52) has moved this functionality to the "Application" tab. So updated steps are:
- Open Developer Tools
- Click the "Application" tab
- Cookies are listed under the "Storage" list item on the left sidebar

- 3,257
- 6
- 26
- 39
Another method is to type the following:
chrome://settings/cookies
in the address bar.
Then use the left click to see more details (content, expiration date, etc.).

- 54,432
- 29
- 203
- 199
On the latest version of chrome Chrome v85
the url is:
chrome://settings/siteData

- 4,033
- 4
- 26
- 33
You can also use web developer tool which not only helps you to view cookies but also helps you to display.delete (session,domain,path) cookies individually.

- 149
- 6