Hello,
we have a problem when setting cookie value for a different host. When using
standard T4 CookieSource we can set a cookie for our application on
application's host. But we need to set a cookie for a different host. I suppose
it's done with injection of tapestry.globals.HttpServletResponse.
There's a piece of our code that is not working:
Cookie c1 = new Cookie("cookieName", "cookieValue");
c1.setDomain("hostname");
c1.setPath("/session_test");
c1.setMaxAge(999999);
this.getB().addCookie(c1); // B is declared as <inject
object="service:tapestry.globals.HttpServletResponse" property="b" />
We are trying to set cookie in pageBeginRender method.
Any help is appreciated.
Audrius