Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] jetty9 and cookies

Hi,

i'm trying to set a cookie in a servlet, get no errors but the cookie is invisible to my web browser.

it's quite simple but it does not work for me:

      Cookie cookieFileDownload = new Cookie("fileDownload", "true");
      cookieFileDownload.setPath("/");
      cookieFileDownload.setMaxAge(60*60*24);

      response.addCookie(cookieFileDownload);

Is there anything whichs needs to be configured in jetty? i have a quite simple configuration and everything else is running fine.

Regards
walter

may be i'm just blind :(


Back to the top