Also, could this simply be done by pointing each site to the same mySQL database?
yes. have you tried it?
diafol
Keep Smiling
10,620 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57
For this you need a session variable that is allowed across subdomains.
$my_ABC_session = session_name("my_ABC_session");
session_set_cookie_params(0, '/', '.site.com');
session_start();
The session_name must be the same on every page in every subdomain or you will generate a new session id. The set_cookie_params is impt to ensure that all subdomains of site.com ('/' is the following path to include).
diafol
Keep Smiling
10,620 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57