1. What is a Cookie
Cookie is small file that store information on your device, like computer, TV, mobile phone or other devices. They enable the entity that put the cookie on your device to recognize you across different websites, services, devices, and/or browsing sessions. Cookie serve many useful purposes. For example, cookie enable us to identify your device, secure your access to our sites generally, and even help us know if someone attempts to access your account from a different device.
What are the different types of Cookie?
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
- 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 Cookie which are set by the web server of the visited page and share the same domain