title: How to set domain in response["set-cookie"]
body: <p>So the thing is, this code works very well:</p>
  
  <pre><code>response["set-cookie"]="cookieName=#{@cookieValue.split.join}"
  </code></pre>
  
  <p>I can set a cookie, with a correct name and content (yes, split.join is correct too). But I need to set a domain too.</p>
  
  <p>My website goes on domain like this: <strong>mysubdomain.mywebsite.com</strong></p>
  
  <p>But I need to set the cookie for domain mywebsite.com.</p>
  
  <p>If I add it like this, the cookie is just not there:</p>
  
  <pre><code>response["set-cookie"]="cookieName=#{@cookieValue.split.join};Path=/;Domain=mywebsite.com"
  </code></pre>
  
  <p>I need to set a cookie with response["set-cookie"] because it is the only method that works for my long string. I tried every method, but I need to use this one.</p>
  
  <p><strong>So the question is: How can I set a domain by using response["set-cookie"] for setting cookie?</strong></p>