You have few options: - if you use JSP as the templating language you will use the JSTL tags jsp:cooky - if not, you will do it in the execute method of your template model -- to access the response you do MgnlContext.getWebContext().getResponse() - use a custom filter in case this is something not related to templates (current language, ....)
Hint: be aware of the fact that the cookies can only be set while the reponse was not committed (not content written to the stream). This is not the case for paragraphs. Cheers - Philipp On 10.03.2011, at 12:41, [email protected] wrote: > Hi. I hope you can help me with a doubt I have: what is the best way of > working with cookies in Magnolia? Is there any Magnolia module or any tag in > Freemarker or something like that? > > Thank you in advance. > > Roberto Sanchez ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
