Specification of a cookie - I
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 after which cookie is to be deleted
EXPIRES uses a modification of syntax returned by JavaScript function Dateobject.toGMTString()
- 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 as well as “official format”
- so now = new DATE(); now.setTime( now.getTime() + 24*60*60*1000);
- now.toGMTString() will give an expiration date of one day from now!