Basic HTML version of Foils prepared 11 March 99

Foil 9 Use of Cookies in Client Program

From Overview of JavaScript II -- From Cookies to Dynamical HTML CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)

JavaScript Utilities including Cookies
1 JavaScript string object document.cookie holds cookies that are valid for this document and can be used to either set or retrieve cookie values
2 In WebWisdom example, we have pages with a form that sets values of parameters common to several foils and stores for a certain length of time. This is entirely processed client-side with JavaScript interpreting form and storing values in appropriate cookie entries
3 These cookies are read on other pages (consistent with PATH and DOMAIN) and if present used to define JavaScript variables that are used in "parameterized HTML"
4 Note document.cookie is set to a single cookie value but when read gives all cookies for this document!

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Mar 11 1999