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 difference between jspwriter and servlet printwriter?
how to make a jsp page threadsafe?
What is jstl used for?
What does it mean when tags or attributes are said to be deprecated?
What is jsp taglib?
What is session object in jsp?
How many tags are provided in jstl?
What jsp lifecycle methods can I override?
What is the requirement of a tag library?
What is a session in web?
How clear chache and buffer of opera browser.
How to comment out jsp code?