So you have more domains hosted as virtual host on the same server ? Then they are able to use the same resources, like the same user table. Then the cross-domain authentication could be already given.
Feherke, thanks for reply.
They can share the same database, and that's what I'm planning on doing, but how do I detect that when a visitor was properly authenticated on domain1.com, and then they visit domain2.com, that they are already authenticated?
I figured this out, and wanted to post this for others.
What I did is call up a PHP script from DOMAIN1 on DOMAIN2, which produced an 1x1 image and at the same time set a cookie on the DOMAIN1. So now I am able to cross authenticate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.