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 |
Can we override jspinit method?
What is jsp action tags?
Can we use jsp implicit objects in a method defined in jsp declaration?
How to retrieve warnings?
What are jsp el implicit objects and how it’s different from jsp implicit objects?
Where we use assertion in java programming?
How can we disable el?
What is action tag in jsp?
What is attribute in jsp?
How many jsp implicit objects are there?
What is jsp exception?
How can we retrieve warnings?