1 |
name=value; EXPIRES=dateValue; DOMAIN=domainName; PATH=pathName; SECURE
|
2 |
name is required and gives the name of cookie
|
3 |
EXPIRES is optional but if present specifies a date after which cookie should be deleted
|
4 |
EXPIRES uses a modified 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
|
5 |
It appears that one can just use a slightly different syntax of toGMTString:
-
now = new DATE();
-
now.setTime(now.getTime() + 24*60*60);
-
now.toGMTString() // one day from now!
|