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 session is used?
How to connect jsp and java file?
What are page directives?
Why we use jsp instead of html?
What are jsp implicit objects?
What are different types of comments used in jsp?
Which tag should be used to pass information from jsp to include jsp?
What is the difference between server side and client side programming?
i am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value in back9ing bean..?
What is expression language in jsp?
What is the difference between <jsp:forward> and sendRedirect?
Can I use javascript on jsp page?