
How set cookie in jsp ?

Cookie is a small piece of information which is stored in user's computer. Web server uses cookie to identify the user in the next time visit.Example :
<%
Cookie cookie = new Cookie("ClientName","Roseindia");
cookie.setMaxAge(3600);
response.addCookie(cookie);
%>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.