Magic cookie

Magic cookie

A magic cookie or just cookie for short, is a token or short packet of data passed between communicating programs, where the data is typically not meaningful to the recipient program. The contents are opaque and not usually interpreted until the recipient passes the cookie data back to the sender or perhaps another program at a later time. The cookie is often used like a ticket — to identify a particular event or transaction.

In some cases, recipient programs are able to meaningfully compare two cookies for equality.

Contents

Cookie as token

A magic cookie can be analogous to, for example, the token supplied at a coat check (cloakroom) counter in real life. The token has no intrinsic meaning, but its uniqueness allows it to be exchanged for the correct coat when returned to the coat check counter. The coat check token is opaque because the way in which the counter staff are able to find the correct coat when the token is presented is immaterial to the person who wishes their coat returned. In other cases (as is possible with HTTP cookies), the actual data of interest can be stored as name/value pairs directly on the cookie.

Cookies are used as identifying tokens in many computer applications. When one visits a website, the remote server may leave an HTTP cookie on one's computer, where they are often used to authenticate identity upon returning to the website. Cookies are a component of the most common authentication method used by the X Window System.

Security

Some cookies (such as HTTP cookies) have a digital signature appended to them or are otherwise encrypted, so that hostile users or applications are unable to forge a cookie and present it to the sending application, in order to gain access to that which the hostile user is otherwise not entitled. Depending on the nature of the encryption algorithm used, users may be able to verify that a cookie is authentic.

See also

References

This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Magic cookie — У этого термина существуют и другие значения, см. Cookie. «Волшебное печенье»[1] (англ. magic cookie)  это небольшой набор данных, передаваемых одной программой другой программе. Содержимое куки, как правило, не значимо для получателя и …   Википедия

  • magic cookie — noun A token or short packet of data passed between communicating programs, used to identify a particular event or transaction; the data is typically not meaningful to the recipient program and not usually interpreted until the recipient passes… …   Wiktionary

  • magic cookie — /mædʒɪk ˈkʊki/ (say majik kookee) noun Computers a small packet of data passed between communicating programs, which becomes meaningful only under certain conditions. {modelled on fortune cookie because of the hidden message it contains} …  

  • Cookie — (куки): Magic cookie (печенье)  компьютерный термин. HTTP Cookie  куки в Интернете. Cookie  журнал манги См. также Куки …   Википедия

  • Cookie — Ein Cookie (englische Aussprache: ˈkʊki; zu deutsch ‚Keks‘ oder ‚Plätzchen‘; auch Magic Cookie, engl. für ‚magisches Plätzchen‘) ist ein kurzer Eintrag in einer meist kleinen Datenbank oder in einem speziellen Dateiverzeichnis auf einem Computer… …   Deutsch Wikipedia

  • Cookie (informatique) — Pour les articles homonymes, voir Cookie. En informatique, un cookie (ou témoin de connexion, abrégé en témoin au Québec[1]) est défini par le protocole de communication HTTP comme étant une suite d informations envoyée par un serveur HTTP à un… …   Wikipédia en Français

  • Magic number (programming) — For other uses of the term, see Magic number (disambiguation). In computer programming, the term magic number has multiple meanings. It could refer to one or more of the following: A constant numerical or text value used to identify a file format …   Wikipedia

  • Cookie (disambiguation) — A Cookie is a small edible cake. Cookie may also refer to: HTTP cookie, a small parcel of information stored on computers by websites Cuculoris, device for casting shadows Magic cookie (or simply cookie ), a token or short packet of data passed… …   Wikipedia

  • cookie — I. /ˈkʊki/ (say kookee) –noun (plural cookies) 1. Chiefly US a biscuit. 2. Colloquial a person: a smart cookie; a tough cookie. 3. Internet a. Also, browser cookie. a small data file containing details of a user s identification, sent by a web… …  

  • Magic Palayok — Format Comedy, Fantasy, Drama Created by GMA Network …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”