I just want to clear this up.
I know that if I have set a cookie on a previous request, it will show up in my Request.Cookies
collection.
I want to update my existing Cookie.
Are the cookies from my Request.Cookies
collection already copied to my Response.Cookies
collection? Do I need to add a new cookie with the same key using Response.Cookies.Add()
, or do I need to use Response.Cookies.Set()
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…