Added ability to set KM_COOKIE_DOMAIN