Howdy_McGee
Howdy_McGee

Reputation: 10635

How do you check cookies using Chrome?

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?

Upvotes: 80

Views: 132243

Answers (7)

AlexMA
AlexMA

Reputation: 10192

To check the current page's cookies using Chrome:

Option 1

  1. Open Developer Tools (usually F12)
  2. Click the "Application" tab (used to be "Resources")
  3. Expand the "Cookies" list item
  4. 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.

Upvotes: 128

Joseph Cho
Joseph Cho

Reputation: 4214

On the latest version of chrome Chrome v85 the url is:

chrome://settings/siteData

Upvotes: 3

Ari
Ari

Reputation: 359

On chrome version 61:

chrome://settings/content/cookies

Upvotes: 1

quicklikerabbit
quicklikerabbit

Reputation: 3556

Latest version of Chrome (v52) has moved this functionality to the "Application" tab. So updated steps are:

  1. Open Developer Tools
  2. Click the "Application" tab
  3. Cookies are listed under the "Storage" list item on the left sidebar

Upvotes: 7

ROMANIA_engineer
ROMANIA_engineer

Reputation: 56626

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.).

Upvotes: 6

kamal
kamal

Reputation: 149

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.

Upvotes: 1

Nick Beranek
Nick Beranek

Reputation: 2751

In your console, type document.cookie. It will return the active cookies for that page.

Upvotes: 25

Related Questions