What is different between Request.Cookie and Response.Cookie

K

Karl Seguin [MVP]

Request.Cookie is used to get the cookies sent from the browser.
Response.Cookie is used to store new cookies onto the browser. Follows the
same paradism as all other Request/Response things. request gets informaiton
about the http request, response is used to out put in response to the
request.

Karl
 
K

Kevin Spencer

The difference is the difference between Request and Response. When any HTML
document is requested by a browser client, the headers sent from the client
contain all cookies for the domain of the HTML document, so that the server
can read them. When the Response is sent back to the client, the cookies are
included in the Response. The client then updates its cookies from the
Cookie Collection sent with the Response.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top