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

6 Answers 6

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
2  
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
1  
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 at 17:37
    
Hi, can you also set the expiry date using this method? –  Drewdavid Oct 8 at 4:22
    
Hi David, I just edited my answer to show how to add expiry and path. –  StanleyD Oct 13 at 11:49

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
9  
But you cannot edit the values in either pane, can you? –  phihag Dec 16 '12 at 8:45
8  
That's correct, you can only view them in Chrome without addons. –  danhersam Dec 27 '12 at 0:36

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

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

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

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

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

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.