humanmade / Mercator

WordPress multisite domain mapping for the modern era.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable multi login

beatelite opened this issue · comments

I noticed the docs said

"Internally, Mercator looks at a request's domain and informs WordPress what set of tables to use. User authentication cookies are set for all domains in the network, so a user logs in on one site and is authenticated across all."

Is there any way to disable this? I don't want users being authenticated to any other site on the network unless explicitly set by the admin of that subsite.

You can accomplish this by disabling SSO (Single Sign On). The @fansided fork has a sample sunrise file with the requisite lines commented out. You can check it out here:

https://github.com/fansided/Mercator/blob/master/sunrise-sample.php