Learn about cookie

What is a Cookie

  1. A cookie is a piece of data that is passed from the server to the browser after the browser accesses the server. 2.
  2. The browser needs to save this data and cannot delete it easily. 3.
  3. Every time the browser accesses the server after that, it must take this data with it.

How to use cookies
Cookies generally serve two purposes.
The first is to identify the user.
The second is to record the history

In more detail:

Cookies (often referred to as Internet cookies) are text files with a small amount of data (e.g. username and password) that are used to identify a user’s computer when using the web. Specific cookies are used to identify specific users and improve their web browsing experience.The data stored in a cookie is created by the server when the user connects. This data is labelled with an ID unique to the user’s computer, and when the cookie is exchanged between the user’s computer and the web server, the server reads the ID and knows what information is specifically for the user.

Then how we find our cookie? A simple way is type F12 and find the web site we are using now, like this:

Imagine what would happen if someone else got my cookie —— All websites would see it as me!

So how to protect yourself: In order to prevent users’ privacy from being tracked and to protect users’ online privacy, some major browser versions have set the Do not Track option. When a user requests that Do not Track be enabled, Do not Track enabled browsers will add a “header” (“headers”) to the http data transmission. headers” in the http data transfer, which indicates to the server of the commercial site that the user does not wish to be tracked. In this way, websites that comply with this rule will not track users’ personal information for the purpose of more accurate online advertising.

Of course, this alone is not enough. As the class said —— no social media and always cash is probably the safest way to go.

Published by endecoder

MY shitting learning experience

Leave a comment