O'Reilly logo

Visual QuickStart Guide: JavaScript, Ninth Edition by Dori Smith, Tom Negrino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9. JavaScript and Cookies

In web terms, a cookie is a unique nugget of information that a web server gives to your browser when the two first meet and which they then share with each return visit. Your browser saves the cookie—and the information it contains about you—as a plain text file stored on your computer’s drive.

As a JavaScript coder, you can do many useful things with cookies. If your site requires registration, you can set cookies to store your readers’ user names and passwords on their drives so that they don’t need to enter them every time they visit. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required