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 the use of session management?
What do you know about jsp tags? Explain how you understand the action tag and jsp action elements.
Which is mandatory in tag in jsp?
What’s the difference between forward and sendredirect?
What is asp and jsp?
What is tld file?
Can init method be overridden?
Why is it that JComponent have add() and remove() methods but Component doesn’t?
What is context url?
what is social transformation system? any site reference? How i get requirement gathering about for it? i wanna build website on this topic
What is application in jsp?
What are the life-cycle methods for a jsp?