Re: Sharing session among multiple domains (generic web development question)

2013-06-13 Thread Frank Bieniek
HI Tom, what about an openid single sign on. there is a python package out there doing it. openid_provider from openid_provider.models import OpenID, TrustedRoot and glue it together with django userena and you have your sso. Thanks Frank Am 12.06.13 13:38, schrieb Tomas Ehrlich: Hi Tom,

Re: Sharing session among multiple domains (generic web development question)

2013-06-12 Thread Tomas Ehrlich
Hi Tom, that's interesting approach. I'm going to use it and publish code later. Thank you! Cheers, Tom PS: The key is the name of problem:) SSO https://github.com/ojii/django-simple-sso https://github.com/bltravis/django-token-sso Dne Wed, 12 Jun 2013 10:30:43 +0100 Tom Evans napsal(a):

Re: Sharing session among multiple domains (generic web development question)

2013-06-12 Thread Tom Evans
On Tue, Jun 11, 2013 at 3:32 PM, Tomas Ehrlich wrote: > Hi Marcin, > unfortunately it doesn't solve the problem. As it's said in document: > > Just like the secret keys, the SESSION_COOKIE_DOMAIN setting from > OldWebsite.com and NewWebsite.com must match if you want > to share sessions. > > ...

Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Bill Freeman
I wonder if you could use an iframe to create the illusion that these sites are served from separate domains? On Tue, Jun 11, 2013 at 10:32 AM, Tomas Ehrlich wrote: > Hi Marcin, > unfortunately it doesn't solve the problem. As it's said in document: > > Just like the secret keys, the SESSION_COO

Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Tomas Ehrlich
Hi Marcin, unfortunately it doesn't solve the problem. As it's said in document: Just like the secret keys, the SESSION_COOKIE_DOMAIN setting from OldWebsite.com and NewWebsite.com must match if you want to share sessions. ... but that's possible only when you share sessions in subdomains (eg.

Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Marcin Szamotulski
Hi, If you use db backend for sessions you could save the session in both databases. Check this: http://dustinfarris.com/2012/2/sharing-django-users-and-sessions-across-projects/ I hope this helps. Best regards, Marcin On 14:22 Tue 11 Jun , Tomas Ehrlich wrote: > Hi Avraham, > I know that c

Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Tomas Ehrlich
Hi Avraham, I know that cookies can be shared among subdomains, but my customer wants to have separate domains. The iframe solution is already implemented. It simply opens http:///sess/ url for each domain in hidden iframes. The view only saves session_id to cookie "sessionid" (by default). https:

Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Avraham Serour
interesting problem! I googled for "Sharing session among multiple domains" take a look here for example: http://stackoverflow.com/questions/6080017/how-to-share-session-among-multiple-domains-on-single-asp-net-website it looks like you can do it across subdomains, so one solution is to split you

Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Tomas Ehrlich
Hi there, this question isn't bound to Django Web Framework as the major limitation are cookies: I have single instance Django site running on multiple domains. Each domain simply filters specific categories. There's an eshop and I need to share sessions among all domains so user can log in on one