I am reading Head First Servlets and JSP and in the topic dealing with Cookies it says that cookies can be retrieved from a client request using the
My question is if cookie is used to identify a single client , how can a servlet get a cookie array from a request (from a single client) ie how can a client send multiple cookies and under which scenario ?
As mentioned, the server can send multiple cookies, and when the client sends a request, all the associated cookies are sent in the cookie array. Then you can iterate this array to get a specific cookie.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley