Basic HTML version of Foils prepared 11 March 99

Foil 5 Cookies -- Client Side Files

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)

Cookies
Cookies provide an alternative mechanism to hidden files where information is saved in special file on client (called cookies or cookies.txt)
  • Note History Cache Bookmarks are also saved client side
Such files can preserve information in a more robust way than hidden alternative!
Cookies are supported by Microsoft and and Netscape and can be used (like forms) for pure client-side or client-server activities
Neither hidden or cookies are very secure
Cookies have 5 attributes -- name, expires, domain, path and secure and are specified by a single line that must specify a value for name but where 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 Thu Mar 11 1999