Session management using cookies.
Basically i understand cookies would be written at the server side in the
servlet into the response.
On every request this cookie array would be sent to the server.
So when a new session is stated , the session id is captured and stored in the cookie on every request the session id is checked.If it is a shopping cart example , the objects in the cart is stored in the cookies.
My question is how does the removal of old cookie happen next time the user logins , he might be having diffrent things to purchase and he need to get rid of the old cart cookie.
Also how does he identify every time it is the same session ? does he cross check on the session id stored.?