asp.net - Why is Cookie available in Request immediately after setting using Response? -
In the pageload, if you give feedback. Add cookies (..., immediately on the next line, you can access it through the cookie. Cookies (... <...
I know that under the cover, the cookie Requests are added in. Cookies by pure, but that cookie was never in the original request.
If what I say is right, why is it that? Is cookie available in the following request Should not be? The request should not have immediate access. Cookies (... empty
You are right, ASP .NET follows the scenario:
< Blockquote> After you add a cookie using the collection, the cookie is immediately available in the HttpRequest.Cookies
collection, even if the customer has not been responding.
- On MSDN
Why is this? On an estimate, that's because developers expect it to work.
Comments
Post a Comment