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

Ref: https://www.question2answer.org/qa/56605/q2a-on-main-and-subdomain-with-single-user-base

Comment by Scott

"Yes this is correct. The shared user base feature is the one to use.

However, if the sites get very popular and you need to separate them all onto different servers, it would be technically possible to set up your own Single Sign On using Q2A itself."

If there are many Q2A subdomain then it is better to use separate db for every site. If one of the subdomain is performing very well then you can move only that site to high performance server.

Also if any one of site is not doing good and owner want to delete then it is easy to disconnect.

Imagine if there are 15-20 subdomains, using single mysql db will be mess.

@Scott, pupi1985, could you please implement Single Sign On using Q2A or provide solution here so that I can test and you can integrate in next q2a version.

It will be helpful to create Q2A network sites.

Thanks!

Q2A version: 1.8.1
by
SSO has already been implemented. Many users of this site have it working already. In the link you added to the question, I've provided quite a complete answer with very relevant comments about it ( https://www.question2answer.org/qa/56605?show=56629#a56629 ).

What specific question do you have?
by
The docs explain how to use SSO: http://docs.question2answer.org/install/single-sign-on/
Go through the functions in the qa-external-users.php file and change to return values relevant to Q2A. For example the qa_get_login_links would have URLs for the main site you want to use with login.
by
@Scott, pupi1985 thanks, will try that.

Please log in or register to answer this question.

...