change cookie.toString to cookie.toCookieString to accommodate cookie.toSetCookieString