title: Is calling HttpServletResponse.addCookie() with the same cookie name safe?
body: <p>Is calling </p>
  
  <pre><code>HttpServletResponse.addCookie();
  </code></pre>
  
  <p>(from servlet-api-2.5) multiple times using a cookie with the same name safe?</p>
  
  <p>Safe in the sense of that there is a deterministic behavior, e.g. the subsequent calls will be ignored (the first wins) or the subsequent calls will always replace the cookie or something like that?</p>
  
  <p>Example: </p>
  
  <pre><code>HttpServletResponse response = ...;
  response.addCookie(new Cookie("foo", "bar"));
  response.addCookie(new Cookie("foo", "42"));
  </code></pre>
  
  <p>Which value will be transferred to and stored by the browser?</p>