• thecreator01

    (@thecreator01)


    Hello, when a subsite is created and the user logs in to the subsite, it is redirected to example.com/subsite/wp-admin and directly redirected to the admin panel.

    However, if we define a top-level domain name for this subsite (such as customdomain.com) and the user logs in from the main site (example.com/wp-admin), he will be redirected to customdomain.com/wp-admin and must log in again. However, the user still appears logged in to the main site. You can’t just access the site’s admin panel. To do this, he must log in again at customdomain.com/wp-admin.

    What do we need to do to direct the user directly to customdomain.com/wp-admin and access the admin panel when he logs in to the main site?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The login’s auth cookie is only valid for the same domain name. It might be feasible to save the auth cookie as a 3rd party cookie that’s valid across different domains, but since many users block 3rd party cookies it wouldn’t be very effective, assuming this is even possible.

    Perhaps try out a few of the single sign on plugins?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.