The documentation for CGI.pm's "header" method contains an example of the format required - Thursday, 25-Apr-1999 00:40:33 GMT. But it's usually easier to use one of the abbreviated formats like '+1d' or '+1y'.
--
< http://dave.org.uk>
"The first rule of Perl club is you do not talk about
Perl club." -- Chip Salzenberg
| [reply] |
According to the RFC 2965 Max-Age for a cookie is expressed as positive integer with the meaning "seconds from now on" - in difference to the cache-controling expiration header, which has to follow the date-formats specified in RFC 2616, of which the format mentioned in the CGI.pm-documentation is one.
regards,
tomte
An intellectual is someone whose mind watches itself. -- Albert Camus
| [reply] |