A cookie is a small piece of data that a website asks your browser to store on your computer or mobile device. They are used to remember user preferences, such as the selected language, access details or page personalisation.
Most browsers support cookies, but users can set their browsers to decline them and can delete them whenever they like.
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