• Hi all,

    Hope you are doing well.

    Here is my main question πŸ™‚

    When I log out in one of my network site and then I go back to another one, I still have the admin bar, Admin Site and logout links. If I try to go in the admin section it won’t work because I’m log out but the bar and the links are present. The cookie “wordpress_logged_in_…” is not removed in every site of the network.

    Is that a bug from the plugin or am I missing something with the cookie domain settings or anything else ?

    The goal:

    I want to use wordpress network for multiple sites/portal as a SSO. My sites should be like this:
    app1.mydomain.com (main one, to manage the network, the users, plugins and the SSO login)
    app2.mydomain.com
    app3.mydomain.com

    It’s already not easy because network works with subdomains which is not my case. (it’s not app2.app1.mydomain.com or app1.mydomain.com/app2).

    So I guess, I have to use WordPress MU Domain Mapping otherwise I would really appreciate any advice.

    Thank you very much in advance for your help.

    Sylvain

    https://wordpress.org/plugins/wordpress-mu-domain-mapping/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    Are you logging out of the mapped domain or the main site domain?

    Thread Starter sbarraud

    (@sbarraud)

    I’m not sure to understand but I would say the main site domain.

    Ex.
    main.mydomain.com (network, the main site to manage all users, login)
    site2.mydomain.com
    site3.mydomain.com

    If I’m logging out of the main.mydomain.com (main.mydomain.com/wp-login.php?action=logout) and then go to site2.mydomain.com, the cookie is still there so I’ve the admin bar. site2.main.mydomain.com is updated but not the mapped domain.

    If I’m logging out of the site2.mydomain.com, I’m redirected to site2.main.mydomain.com/wp-login.php?loggedout=true which is already strange. Then I’m logged out main.mydomain.com, site2.mydomain.com but not of site3.mydomain.com (site3.main.mydomain.com would be up to date).

    I hope, this is clear enough πŸ™‚

    Thanks in advance for your help

    Plugin Author Ron Rennick

    (@wpmuguru)

    If I’m logging out of the site2.mydomain.com, I’m redirected to site2.main.mydomain.com/wp-login.php?loggedout=true which is already strange. Then I’m logged out main.mydomain.com, site2.mydomain.com but not of site3.mydomain.com

    If (as a super admin) you are a user on multiple mapped domains the logout will only log you out of the current domain and the main site domain. In most cases your regular users will only be a user on one mapped domain so when they log out they will be logged out everywhere.

    Thread Starter sbarraud

    (@sbarraud)

    In most cases but not in mine :/

    The users are user for each website. So this is definitely a limitation of the plugin. I will work on that trying to remove all cookies on each mapped domains when a log out process happens.

    Anyway, thank you for your help.

    PS. BTW you are using $wpdb->escape which is deprecated since 3.6

    Plugin Author Ron Rennick

    (@wpmuguru)

    BTW you are using $wpdb->escape which is deprecated since 3.6

    Those have been fixed in the development version.

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

The topic ‘Doesn't logout properly everywhere’ is closed to new replies.