Howdy_McGee Howdy_McGee - 3 months ago 11
Javascript Question

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?

Answer

To check the current page's cookies using Chrome:

  1. Open Developer Tools (usually F12)
  2. Click the "Resources" tab
  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).

You can also check cookies with the javascript console, e.g. document.cookie, but the results are not formatted as nicely.