What is cookie?
Simply put, cookie is a piece of information been passed back and forth between a web server and browser to keep the state of the web surfing session. It is a piece of opaque data. By opaque I mean that its structure is not well understood by the client. It is a piece of data that's stored, then given by the server to the client, stored by the client, and returned to the server each time the client returns. So said the father of cookie, Lou Montulli.
How do cookies work?
Simply put, cookie is a piece of information been passed back and forth between a web server and browser to keep the state of the web surfing session. It is a piece of opaque data. By opaque I mean that its structure is not well understood by the client. It is a piece of data that's stored, then given by the server to the client, stored by the client, and returned to the server each time the client returns. So said the father of cookie, Lou Montulli.
How do cookies work?
Here is the essence of the cookie mechanism:
- The browser first requests a page on the server;
- The server sends back a cookie with the requested page to the browser;
- The browser sends the cookie to the server with subsequent requests.
No comments:
Post a Comment