Home > Backend Development > PHP Problem > Why do web cookies use the word cookie?

Why do web cookies use the word cookie?

伊谢尔伦
Release: 2023-02-22 17:44:01
Original
2909 people have browsed it

This name is the abbreviation of "magic cookie" of UNIX operating system.

 "Magic cookie" has been used by programmer Lou Montulli in 1994 for network communication during computing

 And "magic cookie" is a token or short message data exchanged in the program. Web developers who use it can help users navigate their websites and perform certain functions efficiently.

The name cookie means "small but delicious".

Why do web cookies use the word cookie?

The term Cookie also appears in the book "Computer Lib" written by Ted Nelson. He described a story, probably apocryphal, but widely known among computer enthusiasts:

A large account system for a large company was written and maintained by a very smart programmer. After he left the company, strange things happened. The system will always stop completely for a while and the console will display a message: "Give me a cookie.". The system will return to normal operation only after the operator has entered "cookie". The new administrators spent a lot of effort debugging the code, but no matter how hard they tried, they couldn't eradicate the weird behavior. It was a buried, obscure piece of code that couldn't be completely eliminated without rewriting the program from scratch. So in the end it was decided that it was best to keep the code, record the cookie problem, and train new operators to remember to give the machine a cookie.

 This is the first time that Cookie is referenced to indicate a request/response relationship.

Apparently, the “give me a cookie” question was inspired by Sesame Street Cookie Monster. I don't know if this story is true or not, but Computer Lib was widely read, so programmers who later adopted the term cookies knew the story.

 References:

  [1], http://en.wikipedia.org/wiki/Magic_cookie

  [2], http://en.wikipedia.org/wiki/HTTP_cookie

  [3], http ://boards.straightdope.com/sdmb/archive/index.php/t-66079.html


Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template