Sets and removes the cookie when an admin logs in and out