cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@prema.co.nz>
Subject RE: Cookie in flowscript: changing cookie attributes.
Date Fri, 11 Feb 2005 21:18:28 GMT
Hi Aurelien

Try machin.maxAge = maxAgeInSeconds;

maxAge is a property of the cookie object, not a function.

Cheers,
Adam

> -----Original Message-----
> From: Aurélien DEHAY [mailto:ad@zorel.org]
> Sent: Saturday, 12 February 2005 9:38 a.m.
> To: users@cocoon.apache.org
> Subject: Cookie in flowscript: changing cookie attributes.
>
>
> Hello.
>
> I'm creating a cookie in flowscript like this:
>
> var machin = cocoon.response.createCookie("myotis",generateCookie());
>
> How do I change the max age of this cookie? I've tried
> machin.setMaxAge() with no success.
>
> Rgds.
> --
> Aurélien
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message