A cookie is a text file no bigger than 4k that a website asks your browser to store on your computer or mobile device. This allows the website to "remember" your actions or preferences over a period of time.
Most browsers support cookies however users can set their browsers to decline them and can also delete them whenever they like.
Websites mainly use cookies:
Cookies can also be used for online behavioral target advertising and show adverts relevant to something that the user searched for in the past.
The web server supplying the webpage can store a cookie on the user's computer or mobile device. An external web server that manages files included or referenced in the webpage is also able to store cookies. All these cookies are called http header cookies. Another way of storing cookies is through JavaScript code contained or referenced in that page.
Each time the user requests a new page, the web server can receive the values of the cookies it previously set and return the page with content relating to these values. Similarly, JavaScript code is able to read a cookie belonging to its domain and perform an action accordingly.
A cookie can be classified by its lifespan and the domain to which it belongs. By lifespan, a cookie is either a:
As for the domain to which it belongs, there are either:
Browser
|
Where to find information about controlling cookies |
Internet Explorer |
|
Chrome |
https://support.google.com/chrome/answer/95647?hl=en-GB |
Firefox |
http://support.mozilla.org/en-US/kb/Clear%20Recent%20History |
Safari |
http://support.apple.com/kb/PH5042 |
Opera |
http://www.opera.com/browser/tutorials/security/privacy/ |