cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien DEHAY ...@zorel.org>
Subject Re: Example of Cookies
Date Sat, 02 Apr 2005 10:24:47 GMT
Hi.

Here is a flowscript sample:

var c_ident = cocoon.response.createCookie("myotis_ident",cookie_ident);
c_ident.maxAge = 365*24*60*60;
c_ident.path = "/";
cocoon.response.addCookie(c_ident);

For reading the cookie, I use the input module:

{request:cookies[name='myotis_ident']/@value}

Rgds.



Mime
View raw message