title: Setting default cookie domain for Django site with multiple domain names
body: <p>I would like to set a specific cookie domain for my cookies, because this might solve some issues our site seems to have with IE8. Django seems to have a setting called SESSION_COOKIE_DOMAIN which can be set to obtain this. The problem however is that our site contains multiple subsites which have alternative domain names. So my question is, how can I manage this? I would like to have a standard cookie domain per domain, because I fear browsers like IE8 will reject cookies which aren't from the same domain (quicker).</p>
  
  <p>I will do research myself, but I wondered if anyone perhaps has experience.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>What I actually want to do is to make django store cookies for domain1 when I visit domain1.com etcetera for the other domains. I think it should be as easy as to use the current client domain when storing cookies. I doubt however that django offers such functionality without modification... Maybe I could build a middleware class that changes the global setting to the current domain..</p>
  
  <p><strong>Update:</strong></p>
  
  <p>This question and answer helped me out: 
  <a href="https://stackoverflow.com/questions/3380020/changing-django-settings-variable-dynamically-based-on-request-for-multiple-site">Changing Django settings variable dynamically based on request for multiple site</a>
  Thanks for help :)</p>