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 |
Why jsp is used instead of html?
Can we write a class inside Jsp?
How can I enable session tracking for jsp pages if the browser has disabled cookies?
What are the advantages and disadvantages of thread-safe jsp page?
What is jsp and servlets?
What is jsp usebean?
i need the source code for opening a word document in java
What is a javaserver pages (jsp)?
What is jsp net?
What are the different types scripting elements in jsp?
how can i update the marque in jsp without changing the sourse code
What is expression language injection?