I think I have a workaround, but cannot use localhost. I could make it work only for the .com test domain, which corresponds to 127.0.0.1.
In my / etc / hosts file (on OSX :)
127.0.0.1 test.com
127.0.0.1 sub1.test.com
127.0.0.1 sub2.test.com Then on my setup settings.py:
SESSION_COOKIE_DOMAIN = ". Test.com"
I could not get this to work with a simple "localhost", it seemed to me that I needed the string ".com" to make it work. That way I can log in and cross with subdomain cookies using sub1.test.com:8000 and sub2.test.com:8000 in my browser.
Miken
source share