Using Cookies

The release of Netscape Navigator 2.0 was a watershed event for the Web. It contained a plethora of new features, including support for frames, JavaScript, and cookies. As stated earlier, cookies are used by servers to store information with the client that they can retrieve later.

Cookies didn’t get a whole lot of press at first, but these days they’re used behind the scenes at pretty much every popular Web site. To get a sense of how many Web sites use cookies to store information about their users, set the preferences on your browser to notify you anytime a site sends you a cookie. You’ll wear out your mouse-clicking finger responding to all the “cookie alert” dialog boxes (see Figure 15.2).

Figure 15.2. If you have your browser ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition 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.