1. What is a Cookie
Cookie is small file that stores information on your device: a computer, TV, mobile phone, etc. They enable the entity which places the cookie on your device to recognize you across different websites, services, devices, and/or browsing sessions. Cookie serves many useful purposes. For example, Cookie enables us to identify your device, generally secure your access to our sites, and even help us know if someone attempts to access your account from a different device.
What are the different types of Cookie?
Cookie can be classified by its lifespan and the domain to which it belongs. By lifespan, 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