This isn't possible. The problem is with cookies: You have to bind them
to certain domain ('
example.com') or set of subdomains ('.
example.com').
About a month ago I've created app to bypass this limitation:
- There is one "master" domain, where new session keys are created.
- When user access any of "slave" sites, his browser has to go through
several redirects:
1. First, it's redirected to "master" site. There he gets token
representing current session key.
2. Then it's redirected back to "slave" site, where django sets
appropriate cookie with session key (extracted from token).
3. After then, it's redirected back to original page (on slave site).
Session cookie is set so user can access the same session as on
master site.
- Cookie needs to be set only once. When session (on any site) is
invalid, the other sites will notice that and automatically generates
new session key.
Another solution I've seen was distributing session key through
iframes, but when you have lot of domains, it's easier to do it this
way.
I could share the code, if you were interested. It isn't published
anywhere yet.
Cheers,
Tom
Dne Thu, 1 Aug 2013 06:41:20 -0700 (PDT)
"J. Cliff Dyer" <
j...@sdf.lonestar.org> napsal(a):