I have two virtual hosts:
Ex. testproject1.net and
testproject2.net
I created two simple login script there. I want to implement SSO implementation for it. Once user Authenticate with testproject1.net I want to set session for both virtual hosts (testproject1.net and testproject2.net). Means if I opened the testproject2.net it authenticate automatically by taking the session value.
Please help for dealing with this.
Thanks in advance
Okay, here it goes. If you want, have another
Virtual Hostwithauthproject.net. And post the authentication information to the form there. Let it set in the session.Now, once you give the credentials to the
authproject.netdomain and also where to go after auth, it posts the auth data to the respective destination.Source of
testproject1.net/index.php:Source of
testproject1.net/auth.php:The same to be carried out in all the sites. Hope you get it.