user1390066
user1390066

Reputation: 33

ASP.NET MVC. Reading & 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 retrieved by using the HttpRequst or HttpResponse?

Thanks,

Upvotes: 3

Views: 609

Answers (1)

Thinking Sites
Thinking Sites

Reputation: 3542

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.

Upvotes: 5

Related Questions