InterviewSolution
Saved Bookmarks
| 1. |
How to read a cookie using servlet? |
|
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. |
|