Multi-subdomain site

In case your site spreads multiple subdomains, like:

  • yoursite.com (or www.yoursite.com)

  • blog.yoursite.com

  • docs.yoursite.com

  • etc.

you can tie these subdomains together. This means if a member logs in/out at any of the subdomains, they will be logged in/out at all of them.

circle-check
circle-exclamation

To enable this feature you have to edit the configuration part of your install code as follows

var MemberSpace = window.MemberSpace || {
  subdomain: "YOUR_SUBDOMAIN",
  cookieDomain: "BASE_DOMAIN"
};
circle-info

The value of cookieDomain has to be the top level domain that you own. In the above example this would be yoursite.com Make sure that you replace YOUR_SUBDOMAIN and BASE_DOMAIN with the appropriate values.

Make sure that all instances of the install code are updated across all subdomains of the site you want to connect together.

circle-exclamation

Last updated

Was this helpful?