SV: [Zope] The persistent variable

B Kjeldstad borge.kjeldstad at whiteflower.no
Fri Sep 5 17:28:37 EDT 2003


Geir Bækholt wrote:

if you try the following :
   <dtml-if expr="REQUEST.get('guest')=='C'">
or, following Chris' advice:
   <dtml-if expr="REQUEST.cookies.get('guest')=='C'">
I think you can accomplish what you are after.




Hi Geir,
and thank you for your advice!
I tried both solutions, but I got the same problem now too. The cookie
lasted only for the first page I visited. I cheked this out by including
<dtml-var REQUEST> on my pages. On the first page I got this:

cookies
tree-s 'eJzTiFZ3hANPW/VYHU0ALlYElA' 
guest 'C' 
dtpref_cols '105' 
dtpref_rows '30' 


On the next page I got this:

cookies
dtpref_rows '30' 
dtpref_cols '105' 
tree-s 'eJzTiFZ3hANPW/VYHU0ALlYElA' 


The cookie is gone..

So maybe it is the browser that's having fun with me?

Best!
Børge




More information about the Zope mailing list