Some basic concept... but i'm confused
-
I'm puzzled in the using of Request.cookies and Response.cookies. Could you help me an easy way to understand when i need use Request.cookies and when i need use Response.cookies.... thank you very much... Any answer would be appreciate... :)
-
I'm puzzled in the using of Request.cookies and Response.cookies. Could you help me an easy way to understand when i need use Request.cookies and when i need use Response.cookies.... thank you very much... Any answer would be appreciate... :)
Simple explanation: Request object is used to retrieve data from client, while Response object is used to send/write data to the client. In cookies example, use Request.cookies to read the cookie collection and use Response.cookies to create/add new cookie to the collection.