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 clear chache and buffer of opera browser.
How to run java program in jsp page?
Why jsp is faster than servlet?
How can we prevent implicit session creation in jsp?
What is directive jsp?
How do I set password expire time period?
How many types of jsp tags are there?
Write a simple example for the clone() method.
What is meant by implicit objects and what are they?
What do you mean by context initialization parameters?
How can I set a cookie and delete a cookie from within a jsp page?
What are the possible values for language directive?