[Webware-discuss] RTFM (Was: [Slightly off-topic] Cookies driving me mad (Was: MiddleKit: Something wrong with list of ?)

Thu, 28 Jun 2001 08:09:21 -0700

After digging into the sources I found, why my cookies don't make it into
the browser's cookies:

Application.py:
def forward(self, trans, URL):
        """
        Enable a servlet to pass a request to another servlet. The Request object
is kept the same, and may be used
        to pass information to the next servlet.  The next servlet may access the
parent servlet through request.parent(),
        which will return the parent servlet.  The first servlet will not be able
to send any new response data once
        the call to forwardRequest returns.
        New Response and Transaction objects are created.
        Currently the URL is always relative to the existing URL.
        """

So the call

trans.application().forwardRequest(trans, 'PageCashDeskRegister.py')

is the reason, because of

*****The first servlet will not be able to send any new response data once
the call to forwardRequest returns*****

Sorry for bothering you all.

Regards
Franz


> -----Urspr�ngliche Nachricht-----
> Von: F. GEIGER [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 28. Juni 2001 15:27
> An: Chuck Esterbrook; Webware-discuss
> Betreff: [Slightly off-topic] Cookies driving me mad (Was: MiddleKit:
> Something wrong with list of <Object>?)
>
>
> > https://sourceforge.net/cvs/?group_id=4866
> >
> >
> > Which has the instructions. If you use UNIX then you probably
>
> Did it, thanks.
>
>
> As I wanted to check if the latest version of MiddleKit shows the
> same erronous behavior on my machine as it does with Webware
> 0.5.1.rc3, I was stopped by strange cookie behavior.
>
> No, I do not think, that this has something to do with my
> upgrading to the latest CVS copy of Webware. Cookies annoyed me
> in Webware 0.5.1.rc3 as well. But now, one day later, my app is
> broken, because the cookie set yesterday is returned instead of
> the cookie set today (cookie contains date info). Let me explain:
>
> In page PageCashDeskLogin.py I call:
>
> self.response().setCookie('siCustomerCode', code)
> trans.application().forwardRequest(trans, 'PageCashDeskRegister.py')
>
> where code is 'C1628000'.
>
> In 'PageCashDeskRegister.py I ask for the cookie:
>
> ... = self.request().cookies('siCustomerCode', '')
>
> which yields 'C1627001'. But that's a yesterday's value! As a
> result cookie and some database contents do not match.
>
> I mean, I set 'C1628000' calling self.response(setCookie(...) and get
> 'C1627001' from yesterday, when I call self.request().cookies(...)!
>
> Can anyone enlighten me? What do I do wrong?
>
> Too me it seems, that the cookie is not transferred to the
> browser (MSIE 5.5, cookies are activated), so I tried a
> 'self.writeln(" ")' as I thought this would force a transfer to
> the browser. But that doesn't work either.
>
> Thanks in advance and best regards
> Franz
>
>
> > -----Urspr�ngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Im Auftrag von Chuck
> > Esterbrook
> > Gesendet: Mittwoch, 27. Juni 2001 17:01
> > An: [EMAIL PROTECTED]; Webware-discuss
> > Betreff: Re: AW: [Webware-discuss] MiddleKit: Something wrong with list
> > of <Object>?
> >
> >
> > At 04:22 PM 6/27/2001 +0200, F. GEIGER wrote:
> > >Ehem (embarrassed), how do I access CVS?
> >
> > If you go to the Webware home page and then "@ SourceForge" you
> > will see a
> > toolbar. One of the items is "CVS" and takes you to this page:
> >
> > https://sourceforge.net/cvs/?group_id=4866
> >
> >
> > Which has the instructions. If you use UNIX then you probably
> > already have
> > it on your system. Regardless, you can get more CVS info at
> www.cvshome.org
> as well as looking through the SF site docs.
>
> Of course, as I write this it looks like someone is having a problem that
> indicates the server is down... let me look.
>
>
> -Chuck
>
>
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/webware-discuss
>


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

Reply via email to