Christopher H. Laco wrote:
Try as I might, try as I may, I can't seem to get AxKit::XSP::Cookie to set and expiration date.
Here the relevant code...
<cookie:create name="shopper" path="/" expires="+3M"> <cookie:value> <xsp:expr>$uuid</xsp:expr> </cookie:value> </cookie:create>
Isn't the '+3M' usually interpreted by CGI.pm to yield a real date?
I think you should try and put a date/time in there. Or, patch
A:X:Cookie to interpret relative times (taking code from CGI.pm or similar).
Well, the docs are already misleading somewhat:
> sets the cookie's expiry date. It accepts the same types values that Apache::Cookie does.<cookie:create> Allowed only as the child of a <cookie:create> element, this tag
It already takes values like +3M just like Apache::Cookie does. It also says it's only allowed as a child element.
However, below that is an example where expires is indeed used as an attribute:
<cookie:create
name="oatmealRaisin"
value="tasty"
expires="+3M"
>
Either way, I've tried as an attribute or as a child tag with no luck.
-=CHris
smime.p7s
Description: S/MIME Cryptographic Signature
