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 |
Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?
Why is used in jsp?
What is a expression?
How does error handling occur with jstl?
What is the most needed for STRUTS ?
What is a declaration statement?
What is jsp scriptlet tag used for?
What are the components that make up a tag library in jsp?
What is jstl used for?
What are context initialization parameters?
How many tags are there in jsp?
What are advantages of jsp over asp, php, pure servlets and others?