remove « Cookie « JSP-Servlet Q&A





1. How do you remove a Cookie in a Java Servlet    stackoverflow.com

How do you remove a cookie in a Java servlet? I tried this: http://www.jguru.com/faq/view.jsp?EID=42225 EDIT: The following now works successfully it appears to be the combination of:

response.setContentType("text/html");
and
cookie.setMaxAge(0);
Before I was doing:
//remove single signon ...

2. Remove cookie    java-forums.org