HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 71 Specification of a cookie - I

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * Important Information in IMAGE

name=value; EXPIRES=datevalue; DOMAIN=domainname; PATH=pathname; SECURE
name is required and tells you name of cookie
EXPIRES is optional but if present specifies a date afterwhich cookie is to be deleted
EXPIRES uses a modification of syntax returned by JavaScript function Dateobject.toGMTString(timevalueinseconds)
  • dayofweek, Day-Month-Year Hour:Min:Secs GMT
  • e.g. Wednesday 19-02-97 19:10:24 GMT
It appears that one can just use the slightly different syntax of toGMTString
  • so now = new DATE(); now.setTime( now.getTime() + 24*60*60);
  • now.toGMTString() will give an expiration date of one day from now!



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 Sat May 24 1997