
How read cookies in jsp ?

Creates a cookie, a small amount of information sent by a servlet to a Web browser, saved by the browser, and later sent back to the server. A cookie's value can uniquely identify a client, so cookies are commonly used for session management. Example :
<%@page import="javax.servlet.http.Cookie"%>
<%
Cookie[] cookielist = request.getCookies();
if(cookielist != null){
for(int i = 0; i < cookielist .length;i++){
out.println(cookielist [i].getName());
}
}
%>