Is there a way to set the SESSION_COOKIE_DOMAIN for multiple domains, possibly using the contrib.sites framework?
We deploy on AWS, and when we roll out an update to one of our site, we first create a new cloudformation stack, and attach a domain name to it like prod-oursite-20130801.devstacks.net. When we decide it's ready for production, we point www.oursite.com to the stack. This causes problems with the SESSION_COOKIE_DOMAIN, as we need to have the cookies domain set to .oursite.com if someone is visiting from www.oursite.com (or fl.oursite.com, or wa.oursite.com, etc, etc.), but if they are visiting from prod-oursite-20130801.devstacks.net, we want to either set the SESSION_COOKIE_DOMAIN to prod-oursite-20130801.devstacks.net, or unset it altogether, and just use the default session domain. I would love if SESSION_COOKIE_DOMAIN could be set to a dictionary, like this: SESSION_COOKIE_DOMAIN = { 'www.oursite.com': '.oursite.com', 'prod-oursite-20130801.devstacks.net': '.devstacks.net', } but it doesn't seem like that's possible. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.