Cookies
- A light-hearted look
Cookies are a poor misunderstood creature. Although
it is true that a cookie can be used for evil, cookies themselves are inherently
helpful. The only thing a web cookie wants to do is help, anyway it can. Some
evil webmasters have turned their cookies to evil, and by doing so have created
a lot of problems for the rest of us white-hat programmers. But just as most
programmers don't write malicious codes, most webmasters don't write malicious
cookies.
The real deal on cookies:
Cookies are a small file (cannot be more than
4kb), which resides on your hard drive, and that you have complete control over.
When you return to a website that "baked" the cookie for you, your
browser automatically sends the cookie back to the website. The cookie can contain
data given in pairs or keys of data (ie. "datatype=data"). Most cookies
are only good for the session, and are used by most e-commerce sites to track
your stuff as you place orders, and look at what they have available. Without
cookies a lot of E-Commerce sites wouldn't function. Cookies cannot be viewed
by any website except for the one that sent you the cookie in the first place.
Some uses for cookies:
Web designers are making more and more use of
cookies, they can store up to 250 keys, so you can store preferences on views,
regional information, and all sorts of stuff in cookies, that way, when you
return to a website, it can have larger fonts for those of you with less than
perfect eye site, news and weather information can be given to you based on
where you live, and websites can remeber who you are without you having to log-in
everytime you visit the site, Using cookies also puts less of a load on the
webservers, so that you can get swifter responses, and a more pleasant experience
overall. Basically using cookies a website can be completely personalized to
your preferences.
So why the bad rap:
A while back there was a company that supplies
advertising to webpages. What this company did, was that in the ads which they
supplied to webpages they would create, and then look for cookies that they
placed on your computer, in this way they could track your course through the
internet, whenever you went to a page that had one of their ads on it, they
could also see what ads you clicked on. The information they collected was totally
annonymous, and was only tracked by an ID # in the cookie. A reporter got ahold
of this and raised a big stink, some would say rightfully so. Unfortunately
the reporters facts were a little skewed, and instead of blaming the advertising
company for what was an underhanded trick, Cookies were instead put at fault.
That is how cookies got such a bad rap.
Last updated: May 31, 2002
