ASP.NET MVC. Reading & Writing Cookies

asp.net-mvc, cookies

Solution

Is there any difference between the Cookies collection in HttpRequestBase and HttpRequest?

No

Is there any difference between the Cookies collection in HttpResponseBase and HttpResponse?

No

If a cookie is added to the HttpResponseBase, can it be retrieved by using the HttpRequst or HttpResponse?

Yes (if you add it to a response, it will be available in the next request)

ASP and MVC cookies are identical.

Problem

Is there any difference between the Cookies collection in HttpRequestBase and HttpRequest? Is there any difference between the Cookies collection in HttpResponseBase and HttpResponse? If a cookie is added to the HttpResponseBase, can it be retrieved by using the HttpRequst or HttpResponse? Thanks,

Original source