Share on Facebook Share on Twitter Email
Answers.com

Magic cookie

 

(1) A small amount of data sent back to the requesting party by the recipient. Also called a "magic cookie," it provides information about the transaction, such as an ID or session number, which may be required later either by the recipient or a third party. This is the same concept as definition #2 below, but not specific to the Web.

(2) A small data file created by a Web server that is stored on your computer either temporarily for that session only or permanently on the hard disk (persistent cookie). Cookies provide a way for the Web site to recognize you and keep track of your preferences.

Cookies Are Beneficial

Cookies are commonly used to "maintain the state" of the session as a user browses around the site. The shopping cart is an example. You can place an item in the cart, switch to another page or even another site, and when you come back, the site knows who you are, and you can continue with the order. Without cookies, the site would not be able to identify you automatically because the Internet is "stateless." See state and stateless.

Cookies contain a range of URLs (addresses) for which they are valid. When the Web browser or other HTTP application sends a request to a Web server with those URLs again, it also sends along the related cookies. For example, if your user ID and password are stored in a cookie, it saves you from typing in the same information all over again when accessing that service the next time. By retaining user history, cookies allow the Web site to tailor the pages and create a custom experience for that individual.

Your Cookies Know You

Quite a bit of personal data may reside in the cookie files in your computer. As a result, this storehouse of private information is sometimes the object of attack (see cookie poisoning.)

First-Party Cookies

The default settings in your Web browser typically allow "first-party" cookies, but not "third-party" cookies. First-party cookies are created by the Web site you are visiting and are necessary to keep track of your preferences and the current session as explained above.

Third-Party Tracking Cookies

Third-party cookies are created by a Web site other than the one you are currently visiting; for example, by a third-party advertiser on that site. The purpose of such cookies is usually to track your surfing habits, which is why third-party cookies are considered an invasion of privacy and riskier than first-party cookies.

Configuring Settings

A Web browser can be configured so that only first-party cookies coming from the originating sites are maintained. It can also be set to prevent all cookies from being stored in your computer, but that severely limits the Web surfing experience. To change settings, look for the cookie options in your browser in the Options or Preferences menu. See Web bug, cookie file and state.

Download Computer Desktop Encyclopedia to your iPhone/iTouch

Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
Hacker Slang: magic cookie
Top

[Unix; common]

1. Something passed between routines or programs that enables the receiver to perform some operation; a capability ticket or opaque identifier. Especially used of small data objects that contain data encoded in a strange or intrinsically machine-dependent way. E.g., on non-Unix OSes with a non-byte-stream model of files, the result of ftell(3) may be a magic cookie rather than a byte offset; it can be passed to fseek(3), but not operated on in any meaningful way. The phrase it hands you a magic cookie means it returns a result whose contents are not defined but which can be passed back to the same or some other program later.

2. An in-band code for changing graphic rendition (e.g., inverse video or underlining) or performing other control functions (see also cookie). Some older terminals would leave a blank on the screen corresponding to mode-change magic cookies; this was also called a glitch (or occasionally a turd; compare mouse droppings). See also cookie.


Wikipedia: Magic cookie
Top

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. The name "cookie" comes from a comparison to an unopened fortune cookie, because of the hidden information inside.[1]

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

A magic cookie is 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.

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.

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 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.

Video terminals

Some early video terminal units did not have the memory capacity to store video attributes (such as intensity or inverse display) for each on-screen character individually. Instead, a "magic cookie" character was inserted that displayed as a blank but instructed the video logic to change the attribute of subsequent text. As a consequence, each shift of display attributes would invariably insert one or more space characters, which had to be taken into consideration when designing a particular screen layout. Videotex, as used in teletext, is one of the few instances which have survived into the modern era.

See also

References

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


 
 
Learn More
cookie (computer jargon)
tumbler (computer jargon)
glitch (computer jargon)

When will you get a cookie? Read answer...
Where are cookies from? Read answer...
Can you have a cookie? Read answer...

Help us answer these
When did Magic Johnson and Cookie conceive the other two children Before or after his HIV results?
Can you has a cookie?
Where is the 'Answer Cookie'?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2009 Computer Language Company Inc.  All rights reserved.  Read more
Hacker Slang. The Jargon File. Copyright © 2007.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Magic cookie" Read more