The MU forums have moved to WordPress.org

'Session expired' error when logging in (5 posts)

  1. quikfire
    Inactive
    Posted 17 years ago #

    After installing Wordpress, I cannot login to my admin account.

    I get a 'Session has expired' error, even after repeated tries with the correct login information.

    I can only login after I have cleared all cookies manually.

    This is a bug that is present in Wordpress 1.5, but already fixed in 1.5.1.

    Any chance that MU would also fix it?

    On a sidenote, I must commend the team for a job well done. MU has been getting better, and in fact, other than for the aforementioned error, I have no gripes about MU. Thanks once again.

  2. donncha
    Key Master
    Posted 17 years ago #

    Strange, the latest.tar.gz tarball is based on the latest code from SVN so the bug should be fixed in WPMU too!

  3. quikfire
    Inactive
    Posted 17 years ago #

    I'll try the tarball. Was using the zip file.

  4. quikfire
    Inactive
    Posted 17 years ago #

    Nope, unfortunately it the tarball doesn't work either. Even when I was using the latest version on the 31st May

  5. quikfire
    Inactive
    Posted 17 years ago #

    Ok I made a quick and dirty hack but it works anyhow.

    In wp-inst/wp-login.php:

    Search for Original:

    if ($using_cookie)
    $error = __('Your session has expired');

    Replace with:

    if ($using_cookie)
    {
    foreach ($_COOKIE as $key => $value)
    {
    setcookie($key, '', time()-99999999, '/');
    setcookie($key, '', time()-99999999);
    }
    $error = __('');
    }

    This works on the principle that the error as aforementioned in the first post is only removed after all cookies are removed. As such, the above hack simply loops through all Wordpress MU cookies and removes them.

    I'm not sure of the repercussions (if any) that this hack may have, but I don't think it does any damage.

About this Topic

  • Started 2024 years ago by quikfire
  • Latest reply from quikfire