diff --git a/wp-login.php b/wp-login.php index cda6a5a9ec..b92b7e87d9 100644 --- a/wp-login.php +++ b/wp-login.php @@ -306,7 +306,7 @@ default: } else { $user = wp_validate_auth_cookie(); if ( !$user ) { - if ( empty($_GET['loggedout']) ) + if ( empty($_GET['loggedout']) && !empty($_COOKIE[AUTH_COOKIE]) ) $errors['expiredsession'] = __('Your session has expired.'); } else { $user = new WP_User($user);