Cookies and Servlets
The HttpServletRequest class includes the
“getCookies()” function.
This returns an array of cookies, or null if there
aren’t any.
Cookies can then be accessed using three
methods.
String getName()
String getValue()
String getVersion()
16