What is the Cookie directive?
The Cookie directive is a piece of privacy legislation that requires websites to get consent from visitors to store or retrieve any information on a computer, smartphone or tablet.
It was designed to protect online privacy, by making consumers aware of how information about them is collected and used online, and give them a choice to allow it or not.
- identify users
- remember users’ custom preferences
- help users complete tasks without having to re‑enter information when browsing from one page to another or when visiting the site later.
Cookies can also be used for online behavioural target advertising and to show adverts relevant to something that the user searched for in the past.
How are they used?
What are the different types of cookies?
A cookie can be classified by its lifespan and the domain to which it belongs. By lifespan, a cookie is either a:
- session cookie which is erased when the user closes the browser or
- persistent cookie which remains on the user’s computer/device for a pre-defined period of time.
As for the domain to which it belongs, there are either:
- first-party cookies which are set by the web server of the visited page and share the same domain