• Good morning everyone,

    I’ve been working on integrating all sites and sub-sites into one “network”. Ultimately, I have a few sub-domains and a few domains that I’m wanting to have the same login, and when a user logs in on one site it logs them in on all sites.

    Currently, I have everything setup with one user table, and have the cookie defined in the wp-config to allow this. It works on my sub-sites, however; on my other domain, it gives me the infinite loop on login.

    That’s my issue, and what I’m wanting. Is Multi-site what I’m needing to accomplish this? Or is there something else?

    Ultimately, any site that I own and launch with WP will need to be setup this way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Multisite won’t let you be auto-logged in for mapped domains and subdomains (it’s a cross-domain cookie thing and that’s okay). But it will let you have multiple sites with the same login credentials. Subdomains, subfolders, or mapped.

    Thread Starter ENHAdmin

    (@enhadmin)

    Okay, so Multi-site would simplify the way I do things, but isn’t the fix for my current issue.

    While, I’m okay with the way the login is done if the user logs in prior to checking with this application, I have a script that checks if the user is logged in, if they are then they continue to the app, if they are not, they are redirected to the login. Which is part of the problem; they are sent to domain1 login, so when they successfully login they are sent to domain1 instead of domain2.

    So, another question on Multi-site as it might actually help somewhat now that I’ve typed out the above.

    When a user navigates to a login page using multi-site, what login page are the directed to? Is it for one specific domain, or is a general login page where: when the user logs in it sends them back to the domain they were on.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multi-site or Cookies’ is closed to new replies.