Support » Plugin: WordPress HTTPS (SSL) » Can't logout. Need help figuring out why.

  • Great plugin, thank you very much.

    Only problem is this: My logout link works, but it doesn’t function.

    I remain logged in. I paste in an admin link and I can still edit and navigate just fine.

    How do I solve this?

    I am running a newly created WP site, 2014 theme,
    using Shared SSL, and
    no other login or ssl plugins are running.

    Very basic!

    My settings for Shared SSL:

    For the plugin settings I have:
    Force SSL Admin (only in plugin, not in WP-config)

    I would love to help debug this.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, hello to anyone interested in why you are not able to log out.

    I found a workaround!

    The problem seems to be that wp-login.php logout function is not working. I do not know why.
    The workaround is to call login instead.

    So at line 475 of wp-login.php I changed the logout code very slightly and just removed the URL argument:

    Now it just simply redirects to wp-login.php. No arguments. Works!

    Looking forward to the real fix.

    In the meantime, I hope this helps.



    wp-login.php was fine. No editing required.

    The problem (logout doesn’t work) and fix seems to be this:

    In Setting -> General, the WordPress Address URL is used as the cookie domain.
    If I set that to the non-secure domain, then a logout from within the secure area fails.
    Iow, with a WP URL of the secure the logout function works.
    But with the unsecure, logout does not work.

    The fix is to make WP’s cookie domain use the secure URL.
    define('COOKIE_DOMAIN', '' );

    It also makes it a 3rd party cookie, relative to the other domain, so perhaps it might be rejected.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't logout. Need help figuring out why.’ is closed to new replies.