How to set a cookie on two different domains at login time in one of them?
Hi all! I'd like to log in into e.g. 'www.example.com' and beeing automatically logged in in 'www.example.org' also (pages from www.example.com link to www.example.org). I'd like to copy the cookie for 'www.example.com' also in 'www.example.com'. Details: So if somebody logs in by filling out the www.example.com/site/login_form calling the www.example.com/site/login script I'd like the user also beeing logged in automatically into www.example.org/site (has a login script also). I must admit, that the sites are Plone sites but it seems independent of that. In the root there is a CookieCrumbler and Plone uses Cookies also. I tried to read the '__ac' and '__ac_name' cookies from within www.example.com/site/login but they're not available. Got they eaten by the CookieCrumbler? I see them in the browsers Cookie management screen. If I could access them I could redirect to www.example.org/site/login with the login information automatically and then redirect back to www.example.com/site/logged_in or something similar. Does somebody have a solution or an idea? Gregoire
Gregoire Weber wrote:
I must admit, that the sites are Plone sites but it seems independent of that. In the root there is a CookieCrumbler and Plone uses Cookies also.
Delete the cookie crumblers in the Plone sites, then just have one at the root of your ZODB. Should work as you expect... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Hi Chris, Chris Withers wrote:
Gregoire Weber wrote:
I must admit, that the sites are Plone sites but it seems independent of that. In the root there is a CookieCrumbler and Plone uses Cookies also.
Delete the cookie crumblers in the Plone sites, then just have one at the root of your ZODB. Should work as you expect...
Chris
this comes from a discussion on the plone i18n mailing list: discussion = URL based multilingual Plone Site (started on 20040408) <snip>
when accessing a same plone site from different urls, the authentification cookie is not recognised from one url to another, is it possible to set this cookie for all domains that point to the site ?
cookies are only for one domain, that's for security reasons - the browser sends always the cookies for one specific domain to the server jodok </snip> isn't this conflicting your answer -- David Convent
participants (3)
-
Chris Withers -
David Convent -
Gregoire Weber