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 the jspinit() method?
Can you disable jsp scripting?
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?
What is the difference between java servlet and jsp?
How to connect jsp and java file?
What is dynamic web project?
What’s the difference between forward and sendredirect?
Why do we need custom tags in jsp?
What is application scope in jsp?
What is difference between html and jsp?
What does it mean when tags or attributes are said to be deprecated?
Give the use of session object.