Two Databases, One Login
Posted 17 August 2006 - 09:20 PM
Posted 18 August 2006 - 01:55 PM
Posted 18 August 2006 - 04:55 PM
You could store the log in table on either database and when you have checked for a successful log in in your script you could just include a different connection to the database as required.
Ok, that makes since. Now how would I go about doing this? My database skills are lacking. If you could help me with this, I would really appreciate it.
Posted 21 August 2006 - 08:51 AM
You would have a table in one of your databases called users for example which stores the username and password. Your log in page would check this database for the username and password that the user enters. If it does not match then a message is displayed telling them so. If the log in is successful a cookie could be set and you could check on either site if the cookie is present to control access.
You would only need one log in page which sets a cookie and you could then check for that cookie on either site. Hope this makes sense.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users