c# - Why does MVC HttpCookieCollection.Set update the request's cookies? -
i came upon issue because interested in cookies present in httprequest object, not in httpresponse object. confused cookie browser , fiddler claimed not in request present in httprequest object. found actionfilterattribute setting response's cookie. after stepping on response.cookies.set saw request.cookies included cookie added response. long story short decompiled assembly , figured out intentional.
my questions are:
- i have ideas on how solve it, there established way around this?
- what reasoning behind decision? seems counterintuitive.