Skip to main content

How to check individual cookies in IE, Firefox and Chrome

How often has this happened with you that you visited a site and after that which ever site you went to, you started seeing the ads of the site you visited?

If you know anything about web and browsers you know it is the cookies that were planted by the site. Cookies are nothing but small text files containing some information about the client machine. Often harmless and mostly used by sites to give you a tailor-made experience whenever you visit the site next, but very annoying in some cases like the one I just mentioned.

Browsers give you facility to clear either the entire browsing history (which includes visited sites, cookies, cache, form data etc.) or individual items and you can delete all the cookies in one go. But if you want to see which sites have planted cookies in your machine and clear only the ones you want to, read on.


Click on the 'Wrench Menu'.
Click on 'Show Advanced Settings'.
Under 'Privacy', click on 'Content Settings' button.
In the 'Content Settings' window that opens, under 'Cookies' header you can see all the options related to cookies. Click on 'All cookies and site data' button and you can see all the sites which have planted cookies. You can even check individual cookies planted by each site.
You can delete any or all the cookies in the list.


Go to Tools>Options>Privacy tab.
In the 'History' section, you can see the links to 'clear your recent history' and 'remove individual cookies'. The latter link opens a window which lists all the cookies planted by all the sites. Once again you can delete any or all the cookies in the list.

IE 9:

The cookies for IE are stored in this folder: C:\Users\username>\AppData\Roaming\Microsoft\Windows\Cookies\Low and you can delete either contents of this  folder or by doing Ctrl+Shift+Del and selecting cookies in the list of objects to be deleted.

However there is no simple way to delete individual cookies here. You can delete cookies related to particular domain though. Open the site in the browser. Press F12 to open 'Developer Tools'. Click on 'Cache' in the menu to see the various options related to cookie handling. You can see the cookies planted by this site and delete them.

So there you have it. That's the way the cookie crumbles!


Ami Jha said…
Awesome !!!

Popular posts from this blog

File upload problem: UTF-8 encoding not honored when form has multipart/form-data

The problem that I was facing was something like this. I was using Apache Commons File Upload library to upload and download some file.

I had a form in which user can upload a file and another field 'name' in which she can give any name to the file being loaded.

When I submitted the form, the file was uploaded fine but the value in name field was garbled. I followed all the possible suggestions I found:

<%@page pageEncoding="UTF-8"%> set. <%@page contentType="text/html;charset=UTF-8"%gt; set after the first directive. <meta equiv="Content-Type" content="text/html;charset=UTF-8"> in the head. enctype="multipart/form-data" attribute in the form. accept-charset="UTF-8" attribute in the form.
in the Servlet:
before doing any operations on request object: request.setCharacterEncoding("UTF-8"); For accessing the value

FileItem item = (FileItem);

if (item.isFormField()) {

//For regular…

java.lang.IllegalArgumentException: Malformed \uxxxx encoding

I was getting this exception during build while running ant. Googling didn't help much and I was flummoxed because the same code was running fine till now.

My code reads a text file and does some operations on the basis of values read. It was only when I saw the text files I understood the error. I had copied the text in wordpad and saved it as .txt file. Wordpad had put lot of formatting information before and after the content. Also there was "\par" after every line, which was giving this error.

So moral of the story: if you get this exception check your properties file (or any other file that your code might be reading.)

Easiest way to print Timestamp in Java

Rather than using Calendar.getTime() we can use java.sql.Timestamp class to get the time stamp which gives date and time till millisecond precision.

System.out.println(new Timestamp(System.currentTimeMillis()));

Above will give you current timestamp in this format: 2010-07-27 16:37:45.39