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 a javaserver pages (jsp)?
What is use of scriptlet tags in jsp?
hi friends...i created sessions in my login page i can able to create a session but after loging out again i can able access the pages by its addresses. i think u may got problem if possible post me small example for login with sessions including database
What is the difference between include directive and include action?
What is declaration statement?
What is out println in jsp?
How many messaging models do jms provide for and what are they?
Why is it not necessary to configure standard jsp tags in web.xml?
Is jsp compiled?
Can we write a class inside Jsp?
How to retrieve warnings?
How is scripting disabled?