Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 11038 invoked from network); 4 Oct 2006 00:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2006 00:52:17 -0000 Received: (qmail 47642 invoked by uid 500); 4 Oct 2006 00:52:14 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 47633 invoked by uid 500); 4 Oct 2006 00:52:14 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 47622 invoked by uid 99); 4 Oct 2006 00:52:14 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2006 17:52:14 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=sreepriya_ramakrishnan@yahoo.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.196.97.94] ([66.196.97.94:39478] helo=web56905.mail.re3.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id EA/66-00170-9B503254 for ; Tue, 03 Oct 2006 17:52:11 -0700 Received: (qmail 33679 invoked by uid 60001); 4 Oct 2006 00:52:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vju9mnmbAnkZzHcuTmgE5zwTb4wkTgf+apdsbr1o+hRIdoOzmEgihIBOvYvZvdqodELHsfA6PYc4dyFRRP26ryB8zo1TT0G2UxoW7DQccBuLey5j7fuXzDM7cllT1jHey0dvIc7uNHcRhJBsIi4eIgtI1Ulie2A1vKD3NnEvs8s= ; Message-ID: <20061004005203.33677.qmail@web56905.mail.re3.yahoo.com> Received: from [69.199.76.16] by web56905.mail.re3.yahoo.com via HTTP; Tue, 03 Oct 2006 17:52:03 PDT Date: Tue, 3 Oct 2006 17:52:03 -0700 (PDT) From: sreepriya ramakrishnan Subject: Re: Geronimo and Cookies-code snippet To: user@geronimo.apache.org In-Reply-To: <21df75940610031346m635f1da4n2b50247dc0ce6b53@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Paul, This is waht I am trying to achieve. I have a servlet Filter and in the filter I try to read the Authorization header in the request headers . If I dont find it I send a response with www-authenticate so that it pops up a window to enter the username/password .Now at the same time I set a cookie. Now after this when I receive the username/pwd I check the cookie. Its then that I cant see the cookie. when we send back a www-authenticate response header message to teh browser and set the client , why cant I see the cookie I added? Thanks for your help. -Priya --- Paul McMahan wrote: > On 10/3/06, sreepriya ramakrishnan > wrote: > > Geronimo V 1.0 . Is there something else I need to > do? > > I tested in the tomcat version of geronimo-1.0 and > it also works > there. Just to make sure that we're on the same > page here, you're > aware that setting the cookie in the response > doesn't make it > immediately available in the request object, right? > The cookie is not > available in the request until the client receives > it from the server > (via the response object) and then resends it in the > subsequent > request. i.e. it takes a minimum of two requests to > see the cookie. > > Hope this helps, > Paul > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com