Jump to content

How to login into foo2.com from foo1.com?


guarriman

Recommended Posts

Hi.

 

I've got 'foo1.com' where users log in by using PHP sessions. I store login and password hash into the session, and each time one user access a webpage, I check them.

 

'foo1.com' and 'foo2.com' are on different machines, and that the 'users' table (which contains user+pass info) is placed on 'foo1.com'

 

But I've created 'foo2.com' and want users not to log in again on another login point, but using the 'foo1.com' login. I mean, if you are logged in 'foo1.com' you are also logged in 'foo2.com'.

 

'foo1.com' and 'foo2.com' are on different machines, and the 'users' table (which contains user+pass info) is placed on 'foo1.com'

 

How to manage it? Must I create a webservice or something similar? Is there any standar API to connect (e.g. via XML) both servers' info?

 

Thank you very much.

Link to comment
https://forums.phpfreaks.com/topic/43013-how-to-login-into-foo2com-from-foo1com/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.