Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 70074 invoked from network); 1 Jun 2007 14:02:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 14:02:12 -0000 Received: (qmail 91252 invoked by uid 500); 1 Jun 2007 14:02:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 91233 invoked by uid 500); 1 Jun 2007 14:02:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 91222 invoked by uid 99); 1 Jun 2007 14:02:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 07:02:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of torgeir@pobox.com designates 207.106.133.20 as permitted sender) Received: from [207.106.133.20] (HELO sceptre.pobox.com) (207.106.133.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 07:01:57 -0700 Received: from sceptre (localhost.localdomain [127.0.0.1]) by sceptre.pobox.com (Postfix) with ESMTP id CC81C2F2 for ; Fri, 1 Jun 2007 10:01:57 -0400 (EDT) Received: from [192.168.1.10] (iampivot.plus.com [80.229.27.41]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by sceptre.sasl.smtp.pobox.com (Postfix) with ESMTP id 8EB385445E for ; Fri, 1 Jun 2007 10:01:57 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <347046.12472.qm@web60025.mail.yahoo.com> References: <347046.12472.qm@web60025.mail.yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <565788C0-87FC-4729-A698-5F374C00DA7F@pobox.com> Content-Transfer-Encoding: 7bit From: Torgeir Veimo Subject: Re: Cookie Rookie - cannot delete session cookie Date: Fri, 1 Jun 2007 15:01:32 +0100 To: "Tomcat Users List" X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On 1 Jun 2007, at 14:48, Mike Peremsky wrote: > I am pretty new to cookies and am having an issue. I create a > cookie in my servlet and write it to the response to last the > lifetime of the session (duration = -1). When the user clicks the > logout button I find the cookie, reset the duration to 0 then re- > add the cookie to the response. But when I look at the browser > cookies the cookie is still there and is listed as a cookie lasting > the lifetime of the session. From what I read in the API there is > nothing to directly remove a cookie from a session, I can only > write it with a duration of 0. So, why is the cookie still in the > session? How can I get rid of it? Did you make sure the cookie you reset is using the correct path? The path has to match, not only the domain. -- Torgeir Veimo torgeir@pobox.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org