7.4. Cookies, cookies

7.4.1. My first cookie

A cookie is a small piece of information stored on the client machine by a Web page. The Netscape browser stores its cookie in a file called cookies.txt. For IE systems, a whole directory (under the Windows directory) called “Cookies” is dedicated to storing cookie information. Cookies, or cookie information, can be accessed and manipulated using the script feature document.cookie.

The original idea of cookies was to make life easier for surfers to access their favorite Web sites. For example, when you visit a site for the first time, you may be asked to enter your name and perhaps your email address and some other information to identify yourself. The site will then place a cookie containing this ...

Get Practical Web Technologies 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.