Answer Posted / 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 |
Post New Answer View All Answers
How does a servlet communicate with a jsp page?
What is Include directive?
What is an api with example?
mention the three important tags used in the development of jsp bean.
What is jsp declaration?
How can I implement a thread-safe jsp page? What are the advantages and disadvantages of using it?
What is an expression in jsp?
Differentiate between
How do we configure init params for jsp?
Which two interfaces does the javax servlet jsp package have?
Why should we not configure jsp standard tags in web.xml?
How does jsp engines instantiate tag handler classes instances?
What are the different scopes an object can have in a jsp page?
Can we use the exception implicit object in any jsp page?
Define Static Block.