Basic HTML version of Foils prepared 11 March 99

Foil 3 Introduction to Cookies

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)

Authoring Guide, Netscape Cookies
A cookie is operationally a relatively small named string stored by the browser and a property of the Document object
The cookie mechanism gives the browser a kind of memory, that is, a cookie "saves state"
Originally, only CGI scripts could read/write cookie strings, but with JavaScript, cookies can be handled entirely on the client side
A cookie
  • persists for the duration of the browser session (but an expiration date may be given)
  • is associated with the subtree of the document that created it (but a cookie path may be specified)
  • is accessible to pages on the server that created it (but a cookie domain may be declared)



© 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