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 |
What is application in jsp?
How To maintain session ..?
How can I handle jsp page errors?
What is a scriptlet in jsp and what is its syntax?
What are the standard actions available in jsp?
Explain the steps for creating custom tags in jsp?
What is the jspinit() method?
Is jsp technology extensible?
What is the use of jstl tags in jsp?
Is jsp platform dependent?
How to delete a cookie in a jsp?
What is jsp and its advantages?