Hi, I have two scripts running in a single domain with 2 different DB's. I have a bit of a problem for users to register twice and login twice to use the features. Here is how its now, ------------Script 1 ---------------------Script2 Sign in/ Sign up---Email ID ----------------------- Email ID ----------Confirm Email ID---------------- Confirm Email ID ----------password---------------------- Password ----------Confirm password --------------Confirm Password ----------------------------------------- DOB ---- ---- ---- As of now the registration process is like this, I wanted to have a single registration and single login for users of both scripts in a single domain. Custom programming to integrate both scripts with a single DB can help but it will not be helpfull in future for any product updates. Is there any good way to solve this? Please help, That part of both scripts use PHP and MySQL. Some AJAX and JS is there but it does not come in the Registration part. Is it possible to just call only, Email ID Confirm Email ID Password Confirm Password --- from script2 and store it in Script DB1 in same server and remove the registration link from the Script1 so that only one registration and login is there for the users? Is this possible just by adding a small piece of code in registration.php with no more changes affect the script structure? and will it work fine with just one login? Thanks.
- Put your registration information inside only 1 database. - Create a new class or module that handles the registration process. - Use this class to check if a connection is already established to your registration database'. This can be a constant or flag or object variable set to TRUE. - With the code being modular this way you can add a registration process anywhere and they can always use the same functions - Take the same approach to make sure your users dont login twice. Create a module to handle sessions and use this anywhere you need to authenticate your users. Hope this helps