HOW CAN I ACHIEVE THIS??
Query : I want to setup 2 website with its separate database and
with Common : Registration, Change Email, Change password, Forget, Password, Reset Password
and Login Button will be available on respective websites.
So that same authentication details will be saved in both database
and customer indirectly use same login details stored on respective websites.
Details :
main domain - domain.com
subdomains- a1.domain.com, a2.domain.com
Script will be installed on subdomains a1 and a2 only (and not on domain.com base domain)
Here a1 and a2 have their separate Databases.
I will hide all buttons related to above actions from both installed scripts, except Login.
On base site domain.com, above mentioned action buttons and forms available to collect data.
whenever customer do above actions on base website domain.com (Registration, Change Email, Change password, Forget, Password, Reset Password),
it should pass needed fields to both subdomain websites a1 and a2 and receives fields data in url of model/controller file for respective actions
(by customizing model/controller files to receive data sent using POST)
OR
Needed Model/Controller will be stored on base site and data saved to both database.
kindly GUIDE FOR THIS, HOW CAN I ACHIEVE THIS
ie. SAME AUTHENTICATION DETAILS SAVED IN BOTH DB TO HAVE SAME LOGIN FOR CUSTOMER?