Answer in Web Application for Lorraine Motlokoa #96899
October 24th, 2022
Cookies are data that the server can leave at the client (browser). Clearly:
A client arrives, asks the server for a page.
The server in the response headers can set cookies. For example, issuing two headers: Set-Cookie: foo = 123 and Set-Cookie: bar = baz – i.e. – “remember, foo – 123, and bar – baz”.
At the next call the client, if he decided to remember, tells the server “Cookie: bar = baz; foo = 123. “
A session is something that allows you to distinguish one user from another, and usually stores this data somewhere. For example, remember an authorized user.