Setting domain to req.headers.host + req.url in the cookie.