Reputation: 33
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
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