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 |
when we will use the SendRedirect method instead of forward.
What is an api with example?
How does the Jsp Expressions works ? What happens at the back?
How To maintain session ..?
What is session management in jsp?
Why jsp is used instead of html?
what are the tools used in your project , How to ask the answer this question
What is session tracking in jsp?
What are the implicit, internal el jsp objects and their differences from jsp objects?
Explain the jspdestroy() method?
How can the applets be displayed in the jsp? Explain with an example.
What is jsp and its uses?