[Zope] A disappeaered cookie..

Børge Kjeldstad borge.kjeldstad at whiteflower.no
Fri Aug 22 11:52:45 EDT 2003


Hello :)
 
 
To personalize a website I use cookies. That is; when a person chooses a
link, a cookie is set like this:
 
<dtml-call expr="RESPONSE.setCookie('guest', 'C')">
 
 
Now, this cookie is used to either include or not include a table of
contents
on all of the following pages that I (or actually guest C) visits:
 
<dtml-if expr="REQUEST.has_key('guest', 'C')">
  <dtml-var site_map>
</dtml-if>
 
 
The <dtml-var site_map> looks like this:
 
<a class="map" href="&dtml-URL0;?expand_all=1">Show all</a> <br>
<a class="map" href="&dtml-URL0;?collapse_all=1">Hide all</a>
<br>
<dtml-tree expr="topics">
  <a class="map" href="&dtml-absolute_url;"><dtml-var title_or_id></a>
</dtml-tree>
 
(”topics” is here the folder containing all the pages that guest C may
visit)
 
 
This works fine untill guest C presses some of the links generated by
the <dtml-tree>.
If he or she for instance presses the ”Page 1” link, he comes to page 1,
but page 1
does not include the <dtml-var site_map> even though page 1 still has
the same <dtml-if>
statement:
 
<dtml-if expr="REQUEST.has_key('guest', 'C')">
  <dtml-var site_map>
</dtml-if>
 
 
My question then is: What could be wrong here?
 
 
Thank you very much :)
 
 
Børge Kjeldstadb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20030822/68829abd/attachment-0001.htm


More information about the Zope mailing list