title: Set multiple cookies with the same name in Django
body: <p>Is there a way to set cookies with the same name for multiple domains or paths in the same response? The following only sets the second cookie:</p>
  
  <pre><code>response.set_cookie("alice", "123", domain='sub.example.com')
  response.set_cookie("alice", "456", domain='example.com')
  </code></pre>
  
  <p>I looked at the <a href="https://github.com/django/django/blob/master/django/http/__init__.py#L634" rel="nofollow">Django implementation</a>. It uses a dictionary for storing cookies:</p>
  
  <pre><code>self.cookies[key] = value
  </code></pre>
  
  <p>So Django cannot set multiple cookies with the same name in the same response.</p>
  
  <p>Is this intended to work that way? Do you see a way to work around that limitation?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Reported as a bug: <a href="https://code.djangoproject.com/ticket/18908" rel="nofollow">https://code.djangoproject.com/ticket/18908</a></p>