Original: The term "cookie" is derived from "magic cookie", a well-known concept in UNIX computing which inspired both the idea and the name of browser cookies.
Simplified: The word "cookie" comes from the word "magic cookie". This is a well-known idea in Unix computing which inspired both the idea and the name of HTTP cookies.