I have created a classified website which has a main site and 50 sub domains for cities with separate Mysql database for each. How can I have a single login for the users. Is there a way, Please help I know very little about mysql and php
Have cookies dropped with domain as ".website.com" and you shall be able to read it in all sub domains. Following article may help understand it http://www.idealog.us/2006/09/php_session_coo.html
There are ways of doing it, the cookie is the major part but still have to consider other elements, where are the log in details stored? In one of the dbs? In its own db? Or are some in every db? If the last, are they all in all databases or not?