[Zope] Problems with Core Session Tracking
Chris McDonough
chrism@digicool.com
Tue, 27 Feb 2001 14:18:09 -0500
I presume you're using cookies to track session ids.
In this case, you're redirecting to a URL before the browser has gotten a=
n
opportunity to send the session id cookie to the server.
To get around this, turn on querystring sessionids, and run the redirect =
URL
through encodeUrl for this redirect only (and any other redirects before
which you set a session variable and where the next page depends on that
session variable). E.g.
<dtml-call "RESPONSE.redirect(sessiondatamanager.encodeUrl(URL1 +
'/dealer'))">
This will allow the session id manager to get and parse the session-encod=
ed
URL on the redirect.
If this doesn't work, post back.
----- Original Message -----
From: "Juan Carlos Coru=F1a" <jcoruna@ibdosnorte.com>
To: "Chris McDonough" <chrism@digicool.com>
Sent: Tuesday, February 27, 2001 1:49 PM
Subject: RE: [Zope] Problems with Core Session Tracking
I execute:
<dtml-let
SESSION=3D"sessiondatamanager.getSessionData()"><dtml-call
"SESSION.set('N__cliente', '3345')"><dtml-call
"RESPONSE.redirect(URL1 + '/dealer')"></dtml-let>
And then in other page if I execute:
<dtml-let SESSION=3D"sessiondatamanager.getSessionData()">
<dtml-var "SESSION.get('N__cliente')">
</dtml-let>
I obtain None.
> -----Mensaje original-----
> De: Chris McDonough [mailto:chrism@digicool.com]
> Enviado el: martes, 27 de febrero de 2001 20:10
> Para: Juan Carlos Coru=F1a; zope@zope.org
> Asunto: Re: [Zope] Problems with Core Session Tracking
>
>
> Can you be more specific? What do you want to happen and what
> does happen?
>
> ----- Original Message -----
> From: "Juan Carlos Coru=F1a" <jcoruna@ibdosnorte.com>
> To: <zope@zope.org>
> Sent: Tuesday, February 27, 2001 1:36 PM
> Subject: [Zope] Problems with Core Session Tracking
>
>
> I have problems with the product Core Session Tracking.
> I use internal storage.
> It seems that a variable stored in a session disappears sometimes, but
> sometimes not.
>
> Are there any problems with this product?
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>