Login once and access all subsites

Is there a WPMU DEV plugin or setting that enable the users to login only once and access all subsites on my network?

Currently all users are already synced across the network.

  • Sajid

    Hi Ranjan Selvan,
    Hope you are doing good today :slight_smile:

    This is the default behavior of browsers and servers due security reasons and have nothing to do with WordPress or WordPress multisite. On WordPress multisite subdomain setup the auto login sometimes works and sometimes don't.

    The simplest solution to this issue is by installing our Domain Mapping plugin (even though you don't want to map any domain) and enable Network -> Settings -> Domain Mapping -> Mapping Options and set Cross-domain autologin to yes. This will enable autologin on subdomains as well as autologin for mapped domains too.

    Alternatively you can also add following define in wp-config.php file for cookie sharing.
    define( 'COOKIE_DOMAIN', '.domain.com' );

    Don't forget to replace domain.com and make sure you left the "." before the domain name (that is important and for purpose).

    Hope that helps! Feel free to post a reply if you need further assistance :slight_smile:
    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.