Cookie + State Management
Hi Friends,
Could you someone point me to RFC's or other useful information for state management using cookies.
I DO NOT want to know how I can use cookies for state management, but I want to know how it is done behind the screen....
For e.g
Difference between persistent cookies and memory retained cookies.
How cookie data is communicated between browser and server.
How closing a browser during a session affect the cookie create etc etc...
Hopefully I described clearly what I am looking for....
Appreciate you guys time.
Kumar.
>Difference between persistent cookies and
>memory retained cookies.
If a cookie does not have it's expires attribute set, it expires when the user closes their browser. Otherwise, the cookie expires when the specified date and time is reached.
>How cookie data is communicated between browser and server.
Through "http requests" and "http responses". A browser sends an http request to a server to request a page. The http request automatically includes all cookies that the server previously set. A server can set a cookie by adding a cookie in the "http response" that is sent back to the browser in response to the browser's request.
>How closing a browser during a session affect the cookie
A session cookie expires and it is destroyed. A cookie with an expires attribute that has been set persists until its expiration date.
>Could you someone point me to RFC's
>or other useful information for state management
>using cookies.
www.google.com. Type in 'cookies' and pick any of the thousands of hits and start reading. Then maybe try "java sessions" or "java cookies". And even "http request response".
You might also consider the book Head First Servlets & JSP.