guarriman Posted March 16, 2007 Share Posted March 16, 2007 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 More sharing options...
per1os Posted March 16, 2007 Share Posted March 16, 2007 API would work, I also remember hearing of a project for PHP called "Brownie". I would google Brownie and see if that project went anywhere. Link to comment https://forums.phpfreaks.com/topic/43013-how-to-login-into-foo2com-from-foo1com/#findComment-208949 Share on other sites More sharing options...
boo_lolly Posted March 16, 2007 Share Posted March 16, 2007 do the two sites share a database? Link to comment https://forums.phpfreaks.com/topic/43013-how-to-login-into-foo2com-from-foo1com/#findComment-208962 Share on other sites More sharing options...
guarriman Posted March 19, 2007 Author Share Posted March 19, 2007 boo_lolly: the two sites don't share a database. Only foo1.com server hosts it. frost110: I didn't find anything useful, searching "brownie", "brownie project php", etc. Link to comment https://forums.phpfreaks.com/topic/43013-how-to-login-into-foo2com-from-foo1com/#findComment-210389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.