help users complete tasks without having to re‑enter information when browsing from one page to another
when visiting the site later.
Cookies can also be used for online behavioural target advertising and to show adverts relevant to something
the user searched for in the past.
How are they used?
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
Each time the user requests a new page, the web server can receive the values of the cookies it previously set
to its domain and perform an action accordingly.
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
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
third-party cookies stored by a different domain to the visited page's domain. This can happen when the webpage