Interesting.  Does that mean that cookies only apply to the directory your
servlet is in (and any subdirectories) by default?

In other words, if /MyContext/MySubdirectory/MyServlet.py sets a cookie,
then /MyContext/MyOtherServlet.py can't see the cookie?

If so, how did you work around the problem?  Was there an easy code fix?

- Geoff


> -----Original Message-----
> From: Costas Malamas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 2:36 PM
> To: [EMAIL PROTECTED]; Geoffrey Talvola;
> [EMAIL PROTECTED]
> Subject: Re: [Webware-discuss] Detecting cookies problem (Still)
> 
> 
> 
> Thanks for that tip Aaron; the cookie was sent to the 
> browser, but what I 
> didn't know about was the 'path' property of the cookie:  
> looking at the 
> Mozilla cookie manager, I realized that I had refactored the 
> WK code and the 
> cookie's path was set to a subdirectory.  So, in step 5 below 
> the browser 
> was getting the cookie because the servlet was in the correct path.
> 
> Thanks guys,
> 
> Costas
> 
> 
> 
> >From: "Aaron Held" <[EMAIL PROTECTED]>
> >To: "Costas Malamas" <[EMAIL PROTECTED]>, 
> <[EMAIL PROTECTED]>, 
> ><[EMAIL PROTECTED]>
> >Subject: Re: [Webware-discuss] Detecting cookies problem (Still)
> >Date: Tue, 15 Jan 2002 14:00:35 -0500
> >
> >Are you sure that the cookie is actually being sent to the browser?
> >Try Mozilla and look under the
> >tasks->privacy & security -> cookie manager
> >and check that the cookie and the cookie date is what you 
> are setting it to 
> >be.
> >
> >-Aaron
> >
> >----- Original Message -----
> >From: "Costas Malamas" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>; 
> <[EMAIL PROTECTED]>
> >Sent: Tuesday, January 15, 2002 4:42 PM
> >Subject: RE: [Webware-discuss] Detecting cookies problem (Still)
> >
> >
> > >
> > > I think you misunderstood me;  I have no trouble setting 
> the cookie; I 
> >have
> > > trouble detecting it the second time around.
> > >
> > > Let me make this more clear (reading back on my post, I 
> can see why I
> > > confused you):
> > > 1.  I set the cookie using the Wiki recipe
> > > 2.  User closes browser
> > > 3.  User opens new browser, hits WK page
> > > 4.  WK asks for the cookie, with 
> >self.transaction().request().hasCookie().
> > > WK gets a FALSE answer, so it doesn't do anything.
> > > 5.  User hits the special 'login' page to login, which, 
> just in case, 
> >asks
> > > for the cookie again using the exact same code as (4) 
> (actually calls 
> >the
> > > same function).  WK gets a TRUE answer this time.
> > >
> > > What gives?  As I said, I have replicated this with both 
> IE and Mozilla 
> >(on
> > > Win2K), fearing that it had something to do with IE6's 
> cookie code, but 
> >no
> > > go.
> > >
> > > Ideas?
> > >
> > > Costas
> > >
> > >
> > >
> > >
> > > >From: Geoffrey Talvola <[EMAIL PROTECTED]>
> > > >To: 'Costas Malamas' <[EMAIL PROTECTED]>,
> > > >[EMAIL PROTECTED]
> > > >Subject: RE: [Webware-discuss] Detecting cookies problem
> > > >Date: Tue, 15 Jan 2002 10:02:14 -0500
> > > >
> > > > > -----Original Message-----
> > > > > From: Costas Malamas [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, January 15, 2002 4:28 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [Webware-discuss] Detecting cookies problem
> > > > >
> > > > >
> > > > >
> > > > > I am experiencing this problem with detecting cookies:  when
> > > > > I start a new
> > > > > browser session (i.e. close IE down completely, and start a
> > > > > new fresh one),
> > > > > Webware doesn't seem to be finding its own cookies on my
> > > > > machine.  However,
> > > > > if I reset the cookie, everything's fine.  I am using:
> > > > > if self.transaction().request().hasCookie('username'):
> > > > >   myuser = self.transaction().request().Cracker('username')
> > > > >
> > > > > and this is on W2K; I've replicated the problem with IE6 and
> > > > > Mozilla 0.9.5+
> > > > > (CVS after 0.9.5, before 0.9.6).  Any ideas?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Costas
> > > >
> > > >Have you tried the method described here:
> > > 
> > 
>http://webware.colorstudy.net/twiki/bin/view/Webware/SettingPermanentCookie
s
> > >?  It works for me.
> > >
> > >--
> > >
> > >- Geoff Talvola
> > >   [EMAIL PROTECTED]
> > >
> > >_______________________________________________
> > >Webware-discuss mailing list
> > >[EMAIL PROTECTED]
> > >https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > _______________________________________________
> > Webware-discuss mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to