Joke Collection Website - News headlines - The function and use of cookie

The function and use of cookie

Function: cookies can be used to track and count users' habits of visiting websites, such as when they visited, which pages they visited and the time they stayed on each page. Using this information, on the one hand, it can provide personalized service for users, on the other hand, it can also be used as a tool to understand all users' behaviors, which has certain reference value for the improvement of website management strategy.

Objective: To store the password and ID of a specific website user. In addition, it is used to store the preferences of the start page. On websites that provide personalized viewing, a small amount of space on the computer hard disk will be used to store these preferences. In this way, every time you log in to the website, the browser will check whether there are cookie. If so, the browser sends this cookie to the server together with the request of the web page.

Extended data

Cookies, sometimes in its plural form, refer to the data (usually encrypted) that some websites store on users' local terminals in order to identify users and track conversations. The specifications defined in RFC2 109 and 2965 have been abandoned, and the latest alternative specification is RFC6265.

Cookies are mainly used in servers. You can use the arbitrariness of the information contained in cookies to filter and maintain these information regularly to judge the state of HTTP transmission. The most typical application of Cookies is to judge whether registered users have logged on the website, and the next time they enter the website, they may be prompted whether to keep user information, so as to simplify the login procedures. These are the functions of Cookies.

Another important application is processing such as "shopping cart". Users may choose different products on different pages of the same website for a period of time, and this information will be written into Cookies to extract the information at the time of final payment.

Baidu encyclopedia -cookie

Baidu encyclopedia -cookie