Cookies & Servlets cont’d
•
Cookies can be created using
HttpServletResponse.addCookie() and
the constructor new Cookie(String
name, String value);
–
Expiration can be set using setMaxAge(int
seconds)
17