Basic HTML version of Foils prepared 23 June 1997

Foil 74 Use of Cookies in Client Program

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


1 The JavaScript property document.cookie holds cookies that are valid for this document and can be used to either set or retrieve cookie values
2 Suppose we have a page with a form that sets values and stores for a certain length of time. This is processed entirely on the client by storing values in appropriate cookie entries
3 Cookies may be read on other pages (consistent with PATH and DOMAIN) and if present are 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 Wed Apr 1 1998