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:

  1. i have ideas on how solve it, there established way around this?
  2. what reasoning behind decision? seems counterintuitive.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -