You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Aurélien DEHAY <ad...@zorel.org> on 2005/02/11 21:38:12 UTC

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

RE: Cookie in flowscript: changing cookie attributes.

Posted by Adam Ratcliffe <ad...@prema.co.nz>.
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