Thank you for your quick answer, Philipp. It has been very useful.

Greeting,

                      Roberto Sanchez

-----<[email protected]> escribió: -----

Para: "Magnolia User-List" <[email protected]>
De: Philipp Bärfuss <[email protected]>
Enviado por: <[email protected]>
Fecha: 03/11/2011 08:49a.m.
Asunto: Re: [magnolia-user] Working with cookies

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]>
----------------------------------------------------------------

Reply via email to