Cookies: An Introduction
Cookies—sometimes called magic cookies, but more formally known as persistent client state HTTP cookies—enable you to store information on the client browser's computer for later retrieval. Although they have their drawbacks, cookies are the most powerful technique available for maintaining state within a Web site.
Netscape came up with the original cookie specification. There doesn't seem to be any good reason why Netscape chose that particular name. In fact, on its cookie specification page, Netscape even admits that "the state object is called a cookie for no compelling reason."
In their simplest form, cookies store data in the form of name=value pairs. You, the developer, can pick any name and value combination you ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.