Cookie
is a small amount of information sent by a servlet to the web
browser, saved by the browser, and later sent back to the server.
Cookies value easily identifies a client, so cookies are commonly
used for session management.
Servlet
sends cookie to browser using addCookie method of HttpServletResponse
interface. Cookies can be retrieved from a request by using the
getCookies() method of HttpServletRequest interface. The browser is
expected to support 20 cookies for each Web server, 300 cookies
total, and may limit cookie size to 4 KB each.
No comments:
Post a Comment