Question: set cookie in jsp
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); %>