Use clear_cookie to logout. Check cookie existed.