• DiZzYZA

    (@dizzyza)


    Hi there

    Im currently running nginx and php-fpm along with WPMU 3.5 and i have approximately 1700 + sites as sub directories using domain mapping. I’m in a scenario where a user logs into the backend of WPMU and subsequently gets logged into all the sub directory sites they were recently working in. 1 user logging in can generate as many as 78 logins accross the network (if i watch the access log). If this was only user then php-fpm wouldn’t really complain but i have 20+ users generating just as many requests in the log for sites they are being logged into, and it’s killing my php-fpm. Is there something i can do to stop them being logged into all the sub directory sites they were in?

    I’ve also tried the below fix as suggested by a post found in google

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');
    

    The above fix didn’t really solve my issue.

    Any suggestions?

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

    (@jkhongusc)

    Thats not how core WP does logins for subsites. You login once. You get a WP session cookie. If other subsites are one the same cookie domain, that WP session cookie is good for all subsites.

    You might have a plugin that does special stuff. For example if all your subsites are on separate domains – domain1.com, domain2.com, domain3.com – then one WP session cookie cannot be shared. Maybe a plugin is logging in the user for all the sites the user has access to.

    Thread Starter DiZzYZA

    (@dizzyza)

    Thanks!!! it was the WPMU domain mapping plugin that had Cross-domain autologin enabled!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite login, logs into sub directory sites as well and it’s killing php-fpm’ is closed to new replies.