0

Possible Duplicate:
Cross Domain Single Selective Sign In

I'm using php on multiple domains that belong to the same website, I was wondering if it's possible to keep the users logged in on all domains, once they log in, in one of the domains.

How is that possible?

Community
  • 1
  • 1
Yasser1984
  • 2,401
  • 4
  • 32
  • 55

2 Answers2

1

I did something really simple and it works, you have one server with a session that remembers the user, then using javascript you query that server to see if it knows the user, if it does then you authenticate the same user on the current domain, you pass around a secret key to identify what user to log in.

Yasser1984
  • 2,401
  • 4
  • 32
  • 55
0

Look into OpenID, like what this site uses. http://openid.net/

Also, some questions that dealt with this: Cross Domain Login - How to login a user automatically when transferred from one domain to another

Cross Domain Single Selective Sign In

Community
  • 1
  • 1
djdy
  • 6,779
  • 6
  • 38
  • 62
  • 1
    OpenId does not help me because the users will have to be redirected on each domain separately to the openid provider, am I wrong in saing that? – Yasser1984 Nov 16 '11 at 15:23