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!
|