Added optional domain for the cookie.