Home  >  Article  >  Backend Development  >  What do cookies mean?

What do cookies mean?

藏色散人
藏色散人Original
2019-05-14 13:25:3223850browse

The Chinese name of cookies is a small text file, which refers to the data (usually encrypted) stored on the user's local terminal (Client Side) by some websites in order to identify the user's identity. Defined in RFC2109. It was invented in March 1993 by Lou Montulli, a former Netscape employee.

What do cookies mean?

#Cookies are a technology that allows the website server to store a small amount of data on the client's hard drive or memory, or to read data from the client's hard drive. Cookies are a very small text file placed on your hard drive by the web server when you browse a website. It can record information such as your user ID, password, web pages you have browsed, and the time you stayed on it.

When you come to the website again, the website learns your relevant information by reading Cookies, and can take corresponding actions, such as displaying a welcome slogan on the page, or allowing you to enter without input. Log in directly with ID and password, etc.

Essentially, it can be seen as your ID card. But Cookies cannot execute as code, do not transmit viruses, are proprietary to you, and can only be read by the server that provided them. The saved pieces of information are stored in the form of "name-value" pairs. A "name/value" pair is just a named piece of data. A website can only obtain information that it places on your computer. It cannot obtain information from other Cookies files or anything else on your computer.

Most of the content in Cookies has been encrypted, so the average user appears to be just some meaningless alphanumeric combinations, and only the server's CGI handler knows their true meaning.

Since Cookies are text files or data in memory transferred to the user's computer hard drive by the websites we browse, the location where they are stored on the hard drive is closely related to the operating system and browser used.

The above is the detailed content of What do cookies mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to install apacheNext article:How to install apache