The user cache must be cleared - because $_SESSION['user_id'] is empty, so the entries will never be cleared out.