Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wish to view and edit the cookies of my google chrome. Can anyone suggest to me a way to do it?

share|improve this question

8 Answers 8

Using 10.0.648.45 dev you can view cookies in Options -> Under the Hood -> Content Settings -> All Cookies and site data.

Alternatively, you can view the cookies for the current site with the Developer Tools (Ctrl-Shift-J or Tools -> Developer Tools), Resources -> Cookies.

share|improve this answer
11  
But you cannot edit the values in either pane, can you? –  phihag Dec 16 '12 at 8:45
11  
That's correct, you can only view them in Chrome without addons. –  Dan H Dec 27 '12 at 0:36

I would recommend use external cookies managers. Personally, I like ChromeCookiesView and CookieSpy.

share|improve this answer
6  
FYI, CookieSpy is AdWare –  Justin Holzer Apr 8 '13 at 15:19

There is a Chrome plug-in called Edit This Cookie. It adds a menu to your browser toolbar which allows you to add, edit, and delete cookies.

Install it from here: https://chrome.google.com/webstore/detail/edit-this-cookie/fngmhnnpilhplaeedifhccceomclgfbg

The source code is here: https://github.com/fcapano/Edit-This-Cookie

share|improve this answer

You can go to the Developer Tools (Ctrl-Shift-J or Tools -> Developer Tools) -> Console and the you can enter javascript command:

document.cookie="keyofcookie=valueofcookie"

You can replace or add new cookies with this technique.

It is possible to set multiple cookie options, i.e.

document.cookie="username=John Doe; expires=Thu, 18 Dec 2013 12:00:00 UTC; path=/";
share|improve this answer
3  
Stanley basically said it but to clarify - if you only edit a single cookie with this command, it will not delete all the other cookies on the site, it really only replaces the cookies mentioned in the command. –  Jon z Sep 11 '13 at 22:21
2  
This won't work if some website is using HttpOnly flag to prevent access to cookies by JS (to deny XSS attacks). More on wiki. –  s3m3n May 6 '14 at 17:37
    
Hi, can you also set the expiry date using this method? –  Drewdavid Oct 8 '14 at 4:22
    
Hi David, I just edited my answer to show how to add expiry and path. –  StanleyD Oct 13 '14 at 11:49

I have been frustrated by the current solutions on the extensions store to view, edit, create, remove cookies. The current solutions appeared as popups and did not have a good UI. I wanted to get the same functionality as the firebug cookies editor with a Chrome look and feel. So I made one:

Cookie Inspector - Missing cookie manager for Google Chrome. Edit and create cookies right in the Developer Tools.

share|improve this answer
    
Finally a decent replacement for Firecookie. Thank you man! –  georg Oct 7 '13 at 10:13

Perhaps the easiest way to view your cookies in Chrome is to visit:

  • chrome://settings/cookies

(StackExchange Y U No hyperlink?)

This does not allow you to edit the cookies in Google Chrome 33.0.1750.117 (Official Build 252094) on Mac OS X, but does allow viewing and deleting.

share|improve this answer

For completeness it should be noted that you don't need the developer tools console or any add-ons, extensions or plug-ins.

The javascript commands provided by @StanleyD can be directly entered into the address bar with just an additional "javascript:" prepended. E.g.

javascript:document.cookie="keyofcookie=valueofcookie"

This is useful in an environment where you need to send a cookie change out to a bunch of non-tech users without overwhelming them with steps.

share|improve this answer

For all pages

  1. Go to Settings:

    enter image description here

    (now you are on chrome://settings/)

  2. Scroll to the Privacy section > Content Settings...

    enter image description here

    (now you are on chrome://settings/content)

  3. Click on All cookies and site data...

    enter image description here

    (now you are on chrome://settings/cookies)

  4. Here you can view/remove cookie or remove all cookies. Click on the labels to see details.

    enter image description here

For the actual page

  1. Press F12
  2. Go to Resources > Cookies

    enter image description here

  3. In the right side you can see the cookies. If you want to delete them > right click > Delete:

    enter image description here


To edit cookies, I recommend the Chrome plugin: EditThisCookie (https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg) that was already mentioned.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.