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 do you mean by jsp directives?
What are implicit objects in jsp?
How do I open a jsp file?
Differentiate between include directive and include action.
Can a subsequent request be accessed with one’s servlet code, if a request attribute is already sent in his jsp?
What's the difference between an import and include directive, and also the difference between include directive and include action?
why JSP is bigger choice for software development as compare to ASP.
What is a javaserver pages (jsp)?
How is jsp used in the mvc model?
Explain various implicit objects in expression language.
Is the session object always created on the jsp page, is it possible to disable its creation?
How to get value from java to jsp page?