Helping people with computers... one answer at a time.

Deleting cookies is an easy task. Whether it's absolutely necessary or not is another matter.

Cookies themselves typically aren't as evil as most stories (and some anti-spyware tools) might have you believe.

A cookie is nothing more than some information a website can save on your computer that your browser then provides back to that same website the next time you return.

Seriously. That's it. That's all. That's a cookie.

It's what some sites use cookies for that has some people concerned and why you might care about things like deleting cookies, and perhaps even looking inside of them.

Cookies

It really is that simple: a cookie is nothing more than some information a website can save on your computer that your browser provides back to that same website the next time you return.

What that information is is up to the website. And that information is shared only with that website.

It works like this:

  • You visit some website, say reallybigbookstore.com

  • That starts with your browser requesting a page at reallybigbookstore.com

  • The server at reallybigbookstore.com responds with the page your browser is to show you and a some extra data. I'll use "user=12345" as the example, but it could be just about anything. This extra data is a 'cookie.'

  • The browser stores "reallybigbookstore.com," "user=12345" on your computer somewhere, and displays the page.

  • You spend some time viewing the page.

  • You move on to another page on that same site, perhaps by clicking a link to "reallybigbookstore.com/tech_books.html"

  • The browser requests the page "tech_books.html" from reallybigbookstore.com and sends the cookie with that request (including "user=12345") when it asks for the page.

  • The server does whatever the server does with the cookie and delivers the page to the browser to be displayed.

The important thing that makes all this work is that only cookies sent to you by reallybigbookstore.com will be sent to reallybigbookstore.com. This prevents one site from seeing the data that might be kept by another.

Example: Preventing endless logins

Cookies can be used for many things, but the simplest case is just remembering who you are.

For your sake.

What many don't realize is every page you visit on the internet is, in essence, completely stand-alone. So when you login to a site like, say Amazon or Hotmail, there's no inherent mechanism to pass along to the next page that you visit on that site that you are in fact logged in.

The result would be that each attempt to visit a new page on one of these sites would say in effect, "I don't know you. Please login," and you'd be faced with a never-ending series of login screens.

As you can see in the previous example, simply storing something that identifies you as a user is one way that sites can keep track and not force you to login for every page. The data actually stored is rarely as obvious as "user=12345" for security purposes, but contains enough information for the server to know who you are, the fact that you've logged in, and that you're authorized to see the next page.

How cookies track

Much has been made about tracking cookies, but there's nothing at all technically different between cookies that "track" you, and cookies that keep you from having to login over and over again.

Here's the scenario:

  • You visit some website, say reallybigbookstore.com

  • That site contains advertisements provided by a large advertising network. I'll use doubleclick.net for my example.

  • The advertisements that show on reallybigbookstore.com pages come from the servers at doubleclick.net.

  • That means that the doubleclick.net server can leave cookies on your machine just like any other website.

So far, you've visited a single site and the advertising network it uses has been allowed to leave a cookie on your machine.

Now you keep on browsing:

  • You visit some other website, say somerandomservice.com

  • Somerandomservice.com uses the same advertising network that reallybigbookstore.com does: doubleclick.net

  • When an ad is to be displayed on somerandomservice.com, it is fetched from doubleclick.net and the request sends any cookies for doubleclick.net to the doubleclick.net server. Even though the doubleclick.net cookies were created during your visit to reallybigbookstore.com, the cookies were in fact associated with doubleclick.net.

The advertising network now has the data to know that your computer visited both reallybigbookstore.com and somerandomservice.com, and as long as the pages you saw had ads, how often you visit each, and what pages you visited while you were there.

Multiply that by all the sites you visit, all the different advertising networks that exist and you can imagine that a lot of back-end data analysis can determine really interesting patterns of people visiting assorted sites.

Third-party cookies

As I said above, the doubleclick.net cookies were sent back to the server that they came from, the doubleclick.net server, even though the page you had requested was from somerandomservice.com. That's how cookies operate - at a domain or server level.

Many browsers make a distinction between cookies for the sites you actually requested (somerandomservice.com), and the sites that are subsequently referenced as part of fulfilling that request (doubleclick.net). The later are called "third-party cookies."

You are the first party, the site you actually request is the second party, and all the other sites are so-called "third parties."

Most browsers allow you to turn off third-party cookies, meaning that the cookies created by third-party requests such as advertising networks are simply not created at all or are never sent.

Managing cookies: IE

To delete cookies, click on the gear icon or the Tools menu, select Internet Options and in the resulting dialog, click on the General tab. Now click on the Delete... button:

IE Delete Cookies control

As you can see, Cookies are one of the items that you can delete.

To view the browser settings for cookies, in Internet Options, click on the Privacy tab:

Internet Explorer Privacy Settings

Unfortunately, IE's security model and its concept of zones are fairly complex (for reasons unknown) and to delve into it in detail would require more than a single, simple write-up. However, in this dialog, you can examine the privacy settings for Internet Explorer's "Internet zone".

As you can see above, third-party cookies are largely disabled in this example.

You can click-and-drag the slider to chose from a pre-define set of privacy settings or you can click on the Advanced button to choose a custom set of settings.

Managing cookies: FireFox

To delete cookies in FireFox, click on the Tools menu, and click on Clear Recent History. In the resulting dialog, click the little down-arrow next to Details:

Deleting Cookies in FireFox

Here you can select not only what to delete, including Cookies, but also select a specific timeframe.

To view the browser options for cookies, click on Tools, Options, and then in the resulting dialog box, click on the Privacy tab.

Firefox Privacy Settings

In the Firefox will: dropdown in the History section, make sure to select "Use custom settings for History" to expose the more detailed settings available for managing cookies. Much like IE, you can enable or disable third-party cookies, create lists of exceptions, and more.

Managing cookies: Chrome

To delete cookies in Chrome, click on the gear or customize icon to the far right of the address bar and click on Settings. At the bottom of the Settings page, click on Show advanced settings.... Underneath Privacy, click on the Clear Browsing Data... button.

Chrome Delete Cookies

As you can see, one of the many items you can choose to delete is the collection of cookies, and like FireFox, you can specify a timeframe.

To manage cookie settings, once again in Show advanced settings..., underneath Privacy, click on the Content Settings... button.

Chrome Privacy Settings

At the very top of the resulting dialog box that appears are the settings to control cookies, including third-party cookies and any exceptions.

OMG! They're tracking me!

No, they're not.

Yes, they are, but ... no, they're not.

Here's my position: they don't care about you specifically.

Sorry, but you and I just aren't that important or interesting to track as individuals.

Heck, the sheer volume of data alone makes tracking any one individual an incredibly difficult task.

What's much more interesting is aggregate data: the data that says things like X percent of the visitors to reallybigbookstore.com also visit somerandomservice.com. Or data that shows that people that visit this page frequently are likely to respond to these advertisements. This type of tracking can also be used to perhaps prevent people whose online behavior appears to be similar to men from being shown advertisements designed for women.

You get the idea. They don't track at the individual level, but they use the data en masse to do things like provide more highly targeted and interesting ads or perform market research.

That's not to say that cookies can't be misused; I'm sure they can.

It's just that it's typically a lot more work than it's worth.

Unfortunately, some anti-spyware tools will flag tracking cookies - often any tracking cookie - as a form of malware. I simply and emphatically disagree. Flagging tracking cookies in that manner causes more confusion and concern that it actually adds any value. And it certainly doesn't make you any more safer.

What should your settings be?

In my opinion, the default settings across all browsers are just fine. The examples above will let you see what they are, but I see no real reason to change them.

However, I know that some people feel differently and those of you might want to spend a little time diving into your browser's cookie settings.

(This is an update to an article originally published June 13, 2004.)

Article C2032 - December 6, 2012 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
40 Comments
Ken in San Jose
December 8, 2012 9:31 PM

For Chrome browser, in the content settings page, (Settings/ Show advanced settings/ content settings) click on "All cookies and site data" and it will take you to a page where you can delete selected cookies. In no time at all you can collect hundreds of cookies. Some of the cookies are good, you do not have to enter your user name when logging into a site. But a lot of the cookies are junk and not needed. So I delete these cookies to keep the number within a reasonable number of cookies.

Anonymous
December 10, 2012 9:12 AM

No personally identifiable information?

Did you notice in the recent national election how both parties bragged about collecting info from an individual's internet use?

Bill
December 11, 2012 2:41 PM

I don't want to appear paranoid but I don't think this is a coincidence. Yesterday I googled GPS units with US and Europe maps. This morning an email from Garmin awaited me with a "no postage" offer for any purchases from their on-line store.

Sylvia Liney
February 18, 2013 8:59 PM

I changed the settings to look exactly like your example & pressed OK. When I went back to check it was still showing the same settings, it had reverted back to
Firefox will remember History, instead of what I checked, which was 'Use Custom Settings for History' Any idea what's going on here? Why didn't it save my settings?
Also, I have a problem. After deleting some cookies, I can no longer log in to YouTube! The message is telling me that the site will not open. I can view stuff, but cannot add anything to my lists or make comments unless I am logged in....As I am a beginner, not sure what to do next....Please can you help?
Thanks
Sylvia

Mark J
February 19, 2013 2:46 AM

@Sylvia
I don't know what could be causing Firefox to revert to the old settings, but can tell you what's probably happening with YouTube. When you log in to a Youtube the login information is stored in a cookie. When you delete the cookie, you are no longer automatically logged on when you go to that site. You now have to click on the Sign in button in the top right of the YouTube page. In order to be able to do this you may have to press F5 to reload the page, or if that doesn't work you may have to clear the Browser cache.
What's a browser cache, how do I "clear" it, and why would I want to?