What is a “cookie”?
A cookie is a small piece of information sent by a website (through the browser) and stored on a user’s computer while interacting with the website. Cookies were designed to be a reliable mechanism for websites to remember the user’s activity, information that helps the owner(s) of the website make relevant improvements (content, layout) according to the user’s preferences.
Types of cookies
Based on their duration (lifespan):
- session cookies– are deleted when the user closes the browser
- persistent cookies– remain on the user’s device for certain period of time (a few months to years).