Joe Latty wrote:
I am going to have another go at posting this and see if I can clarify it a bit.
Using the following code within flow script...
var cookie = cocoon.response.createCookie("username", username);
cocoon.response.addCookie(cookie);
Cookies are created, however these cookies are not persisted on the client. They are in existence for the duration of the users session.
How can I persist these cookies?
I have tried setting cocoon.maxAge!
Joe

I'm sure you meant "setting cookie.maxAge". That's what I'm doing and it works. Here is my code:


var cookie = cocoon.response.createCookie("username", username);
cookie.path = "/";
cookie.maxAge = 60*60*24*90; // 90 days
cocoon.response.addCookie(cookie);

HTH,

Ugo


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to