Log out and redirect for an invalid session