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 do I run a jsp file in linux?
What is taglib uri in jsp?
Differentiate between <jsp:include page=…> and <%@include file=…>.
Why use of scripting elements in jsp is discouraged?
how to make a jsp page threadsafe?
How can you include the results of another page?
What are the advantages of jsp?
Why session is used?
How can we handle the exceptions in jsp?
What is the requirement of a tag library?
What is jstl?
What is the difference between directive include and jsp include?