I am trying to set cookie from inside the action code in a site map.

Here is a snippet of my code:

    Response response = (Response)
objectModel.get(Constants.RESPONSE_OBJECT);
    Cookie cookie = response.createCookie("user","Jhon Doe");
    cookie.setMaxAge(1000000);
    response.addCookie(cookie);

But apparently this code doesn't work. I couldn't detect appropriate cookie
using IE. Did I do something wrong ?
BTW I use cocoon v. 2.0.1.

Thank you
Lev Tsentsiper


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to