Cookies are assigned by servers, using fields added to HTTP response headers. In this API, cookies are saved one at a time into such HTTP response headers, using the javax.servlet.http.HttpServletResponse.addCookie method. Cookies are passed back to those servers using fields added to HTTP request headers. In this API, HTTP request fields are retrieved using the cookie module's javax.servlet.http.HttpServletRequest.getCookies method. This returns all of the cookies found in the request.
Cookies affect the caching of the web pages used to set their values.
By default, cookies are stored using the original specification. Returns a copy of this object. Returns the prefix of all URLs for which this cookie is targetted. This cookie should be presented only to hosts satisfying this domain name pattern. This is not supported by version zero cookies.