Jump to content


Photo

Logging in across multiple sites.


  • Please log in to reply
1 reply to this topic

#1 Griffin

Griffin

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,207 posts
  • Gender:Male
  • Location:California
  • Interests:Things I find interesting.

Posted 11 May 2011 - 11:35 PM

Hey,

I'm looking for some information on how one might go about sharing login info across multiple sites on seperate servers. I'd like to have something similar to Facebook Connect (where you can log on to sites using your facebook info), but instead have it so users could login using their info from a partner site.

I've tried to look this up but have either gotten stuck with topics that only discuss facebook connect or user bridges for sites being run on the same sever...I may just be using the wrong keywords.

So, assuming any of what I just said made sense, does anyone have any idea how this might be accomplished?

Thanks,

Griffin

#2 rc69

rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 12 May 2011 - 12:12 AM

The best way to do this is to make use of already existing technologies such as Facebook connect, Windows Live sign in, OpenID, etc...

If you really want to reinvent the wheel though, i can think of a few ways i'd try and go about doing this, but i can't confirm any of them work:
1. Like the already existing technologies, make a login page that will post to some common login back-end somewhere and then find a secure way to redirect back to your site with a validated login token.
2. Use a shared database. There are a number of ways to do this, but since you probably aren't all on the same server, you will have to grant remote access privileges to a user you can use to access the shared database.
3. Find a way to replicate/synchronize user information across all partner sites.

Of course, each option has its up's and down's, and just about everything requires the partner sites to share a common login library. That concept alone has issues. But it really all depends on how far you want to go.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users