asked in JSP by (58.6k points)

1 Answer

To read cookies, you need to create an array of javax.servlet.http.Cookie objects by calling the getCookies( ) method of HttpServletRequest. Then cycle through the array, and use getName() and getValue() methods to access each cookie and associated value.
answered by (58.6k points)

Java Interview Questions and Answers 2018