How can a cookie is deleted with JSP?
Answer / venkat
<%
Cookie killMyCookie = new Cookie("mycookie", null);
<%-- mycookie is the cookie instance which we have to
delete%>
killMyCookie.setMaxAge(0);
killMyCookie.setPath("/");
response.addCookie(killMyCookie);
%>
Is This Answer Correct ? | 1 Yes | 0 No |
How can automatic creation of session be prevented in a jsp page?
Is jsp static or dynamic?
Which categories can be divided jstl tags, give examples.
What is jsp action tags?
Can you override jspinit() method? If yes, in which cases?
Explain lifecycle methods.
Can u Override any of the lifecycle methods of JSP?
What are the two kinds of comments in jsp and what's the difference between them ?
Plz any body tell me why use jsp over servlet.what is the benefit of jsp over servlet?
4 Answers Future Generali, HCL,
What is jsessionid?
What is the jsp:setproperty action?
How to print java variable in jsp?