We had some issue like that too, half a year ago. I dont remember exactly,
but there was some tomcat request wrapper, that caused the bad behaviour.
We solved it by setting the Cookie via JS... not very elegant, but it had to
be done in a short time.
regards
rainer
PS: Plz, let us know if there is a better solution ;)
Mark Jones wrote:
>
> Hi,
>
> I am using a standard install of Magnolia and I have written some code to
> create a cookie. However, the cookie is not being written away. The code
> is straightforward and works in a standalone tomcat container, but doesn't
> seem to work when embedded in a Magnolia template. Any ideas as to what
> I'm doing wrong?
>
> String email=request.getParameter("email");
> if (email != null) {
> Cookie cookie = new Cookie ("myemail",email);
> cookie.setMaxAge(3600);
> response.addCookie(cookie);
> }
>
> Thanks
> Mark
>
--
View this message in context:
http://www.nabble.com/response.addCookie-does-not-set-a-cookie-tp23095119p23131996.html
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------