I have a web server with the main php application in it and a folder with another different web app in it. They were developed separately, so each one connects to a different database and has different login forms.
My question is: if i am on the web app on the folder, how can I connect to the database of the first web app just to login and then connect back to the "folder web app" database to retrieve the rest of the information?
Sorry If I did not express my self well. I am not looking for a php script done for me, i just need some info on how i can do it
Thanks!
You are looking for a Single Sign-On Script using PHP. That's the term you need to search for. A simple model would be:
Site:
http://auth.local/
:Site:
http://site1.local/
:Site:
http://site2.local/
:See the answers for the question How to do single sign-on with PHP? for more info.