Since session and cookies are both used to store temporary data, what is the difference between them?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In each HTTP response, the server has the opportunity to add a header
Set-Cookie: {cookie-name}={cookie-data}; {cookie-options}.The browser will, in every subsequent HTTP request (or as specified by the options), add a header
Cookie: {cookie-name}={cookie-data}.Request #1:
Response #1:
Request #2:
Response #2:
All future requests will also include the
Cookieheader.