I'm not sure if you can share a cookie across domains (though you can share across sub-domains). So, you have a single web2py app accessible via two different domains, and you want a given user to be logged into this single app but able to access it from either domain simultaneously? Can you explain the use case for that setup a little more?
Anthony On Thursday, March 22, 2012 7:02:56 PM UTC-4, Carlos wrote: > > Thanks Anthony. > > If I visit mydomain1.com and mydomain2.com (both pointing to the same > web2py app) from the same browser, will both get the exact same session id > cookie?. > > Aside from CAS, is there any other way (web2py / javascript) that both > domains share the same session cookie?. > > Thanks again. > > > On Thursday, March 22, 2012 12:49:28 PM UTC-6, Anthony wrote: >> >> Have you looked into using CAS ( >> http://web2py.com/books/default/chapter/29/9#Central-Authentication-Service<http://web2py.com/books/default/chapter/29/9#Central-Authentication-Service> >> )? >> >> On Thursday, March 22, 2012 2:16:42 PM UTC-4, Carlos wrote: >>> >>> Hi, >>> >>> I'm wondering if it's possible to have cross-domain auth in web2py >>> (different domains pointing to the same web2py app and sharing the same >>> cookie)?. >>> >>> I believe this is not possible because cookies (web2py's session cookie) >>> can not be shared across domains, correct?. >>> >>> Or is there some kind of trick I can do to accomplish this?. >>> >>> Thanks! >>> >>> Carlos >>> >>>