Fixed do_logout error when expiring cookie