JavaScript : Smart Sites and Cute Cookies
Dr Benton


Most sites make use of cookies. But what's behind the biscuit? Cookies are little text files stored on the surfers' computers during their visits, which help to save pieces of information on the visitor profile. They allow you as a site creator to optimise and customise the way the visitor consults the site at each visit.

Identify visitors when they connect to a site, without requiring them to specify a user name and password; display a home page based on the individual visitor's interests; present a different page at each new visit, etc. - the applications for cookies are endless. And this also gives us another opportunity to learn more about JavaScript.

Before we start, check out the result of this workshop

Contents:

- Setting the Scene

- Step-by-Step Guide to Baking Cookies

- Reading/Writing Cookies

- Function for Writing a Cookie

- Function for Reading a Cookie

- Function for Updating a Cookie

- Function for Linking a Cookie to an HTML page