Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Fixing WordPress
    In reply to: Can’t log out

    Oh, forgott to tell you that u have to change the lines before the replace stuff.

    setcookie(USER_COOKIE, $username, $expire, $sitecookiepath, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, $password, $expire, $sitecookiepath, COOKIE_DOMAIN);

    ($cookiepath to $sitecookiepath)

    Forum: Fixing WordPress
    In reply to: Can’t log out

    My Solution

    Delete all Cookies in your Browser

    Open: \wp-includes\pluggable.php
    Replace:`
    if ( $cookiepath != $sitecookiepath ) {
    setcookie(USER_COOKIE, $username, $expire, $sitecookiepath, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, $password, $expire, $sitecookiepath, COOKIE_DOMAIN);
    }`

    With: `/*
    if ( $cookiepath != $sitecookiepath ) {
    setcookie(USER_COOKIE, $username, $expire, $sitecookiepath, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, $password, $expire, $sitecookiepath, COOKIE_DOMAIN);
    }
    */`

    Login again and try to logout.
    Fixed the Problem for me (Subdomain)

    Forum: Fixing WordPress
    In reply to: Can’t log out

    It’s definitly a cookie related bug.
    Wordpress sets two cookies in the pluggable.php with the following code:
    setcookie(USER_COOKIE, ‘ ‘, time() – 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, ‘ ‘, time() – 31536000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie(USER_COOKIE, ‘ ‘, time() – 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);
    setcookie(PASS_COOKIE, ‘ ‘, time() – 31536000, SITECOOKIEPATH, COOKIE_DOMAIN);

    As you can see there are two paths which could be the problem.

    I have this Problem with a Subdomain. A ticket about this Problem can be found here (opened two years ago and last modified 2 days ago)

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