Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 36971 invoked by uid 500); 25 Sep 2001 20:36:17 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 36957 invoked from network); 25 Sep 2001 20:36:17 -0000 Date: 25 Sep 2001 20:36:21 -0000 Message-ID: <20010925203621.29836.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 3799] - Setting null cookie value throws exception X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3799 Setting null cookie value throws exception craig.mcclanahan@sun.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From craig.mcclanahan@sun.com 2001-09-25 13:36 ------- According to the Javadocs for Cookie, the proper way to delete a cookie is to set the max age to zero before adding it: Cookie cookie = new Cookie("foo", "arbitrary value"); cookie.setMaxAge(0); response.addCookie(cookie); Even if Tomcat is changed to not throw an NPE in this case, your cookie will still not be deleted.