I have two AspNetCore sites that are hosted on the same host. I am trying to detangle their cookies so that it does not overload the max size that is allowed in headers.
I read on google's site that both the Domain and Path are used to decide which requests get which cookies. The domain is set as the host name. But Path seems to be just what I need.
But when I try to set the path, it never actually changes. I have tried two different ways. For both, the code looks like this:
cookieAuthenticationOptions.Cookie.Path = "/MyAppRootPath";
The first method adds this code to services.AddAuthentication(...).AddCookie(...)
The other is the same code, but done in services.ConfigureApplicationCookie(...). (From this question.)
For both ways, when I look at my cookies in Chrome dev tools, the path is still set to the default of /:
How can I get the path of my cookies set to something other than the default of /?



