Basic HTML version of Foils prepared 23 June 1997

Foil 70 Cookies Files on the Client

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

Lecture with Cookies
Cookies provide an alternative mechanism where information is saved in a special file on the client called cookies or cookies.txt
  • Note History, Cache, and Bookmarks are also saved on the client
Such files can preserve information in a more robust way than hidden fields!
Cookies are supported by Microsoft and Netscape and can be used (like forms) for purely client-side or client-server activities
Neither hidden fields or cookies are very secure
Cookies have five attributes: name, expires, domain, path and secure, which are specified on a single line. Only name is required; all other attributes are optional



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