Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+9 votes
1.7k views
in Q2A Core by
edited by

I saw that the dev preview says "Allow multiple Question2Answer sites to share a single user base, via new settings in qa-config.php."

Can you provide a few more details here? I'm assuming this would allow for "meta" sites and the like?

by
that  sounds good.
by
what is this ?

1 Answer

+10 votes
by
 
Best answer

It's fairly straightforward and explained in qa-config.php.

Basically you can set a different prefix for those database tables which are related to users and their profiles. So you can set up multiple Q2A sites which use the same prefix for user-related tables, and different prefixes for the other tables.

There's a also a setting for the cookie domain, so that people logging in to one subdomain will automatically be logged in to other subdomains.

If you use Facebook login, be sure to also set the higher level domain in your FB application settings, so the Facebook cookie is also shared.

by
Thanks, sounds good!
by
If I use Facebook login and like to share user based between different domains, whats need to be done?
...