ASP.NET MVC. Reading and writing cookies

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 obtained using HttpRequst or HttpResponse?

Thank,

+3
source share
1 answer

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 obtained using HttpRequst or HttpResponse?

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

ASP and MVC cookies are identical.

+5
source

All Articles