How can I delete a cookie with JSP?-java-tech-interview29032012
Say that I have a cookie called “foo, ” that I set a while ago & I want it to go away. I simply: <% Cookie killCookie = new Cookie(”foo”, null); KillCookie. setPath(”/”); killCookie. setMaxAge(0); response. addCookie(killCookie); %>
No comments:
Post a Comment
for more info Visit
Technical forum for question and answer related your jobs please visit
sarkari naukri forum