title: Writing multiple cookies to Java HTTP Response (HttpSlingServletResponse) not working
body: <p>I am trying to write multiple cookies to a SlingHttpServletResponse, however only the last cookie i write is visible in the browser.</p>
  
  <p>Ex.
  response.addCookie(new Cookie("foo", "bar"));
  response.addCookie(new Cookie("lion", "bear"));
  response.addCookie(new Cookie("cat", "dog"));</p>
  
  <p>When I look at the cookies on my browser, the only cookie i see is the: "cat", "dog" cookie
  If i switch the order, the last cookie is always the one that displays (so i dont think its something with a specific cookie).</p>
  
  <p>The Java API indicates that you can call response.addCookie() any number of times to add any number of cookies.</p>
  
  <p>Im not sure if this is a Sling specific issue (i dont think it would be) but it might be? </p>