Hi, I have a servlet that extracts cookies from its HttpServletRequest's getCookies() method. But what confuses me is does the getCookies get ALL the cookies that the client has or just the ones specific to this server or even session? How does HttpServletRequest determine which cookies to return? Thanks!
HttpServletRequest has all of the cookies that the browser sent, but the browser only sends those that are specific to that particular URL - see rfc2109 for details of how cookies are identified with URLs. One place to get a copy is: http://www.cis.ohio-state.edu/htbin/rfc/rfc2109.html Bill