Correct Answer - Option 1 : A cookie is a piece of code that has the potential to compromise the security of an Internet user
- Cookies are messages that web servers pass to your web browser when user visit Internet sites. Web browser stores each message in a small file, called cookie.txt.
- When user request another page from the server, browser sends the cookie back to the server. These files typically contain information about users visit to the web page, as well as any information user have volunteered, such as your name and interests.
- Cookies are not piece of code; they are just string typically in the form of key value pairs.
Key points about cookies:
It is used to track the browsing pattern of a user.
It gains entry to the user’s work area through an HTTP header.
It has an expiry date and time.