Features
- Persistence: Cookies can be persistent or session-based, which will be dependent on the time duration of data to last.
- Key-Value Storage: Cookies stores data in a key-value pair and the key-value pair makes it easy to retrieve and update data.
- Security: Cookies can have security features like HttpOnly and Secure attributes to protect against unauthorized access.
Understanding Cookies in Web Browsers
The Cookie is a small message from a web server passed to the user’s browser when you visit a website. In other words, Cookies are small text files of information created/updated when visiting a website and stored on the user’s web browser. Cookies are commonly used for information about user sections, user preferences and other data on the website. Cookies help websites remember users and track their activities to provide a personalised experience.