[Zope] cookies

Rik Hoekstra rik.hoekstra@inghist.nl
Tue, 4 Jul 2000 22:53:33 +0200



>can you tell me how can I use the "cookies"

try:

<dtml-call "RESPONSE.setCookie('blurk', 'nonsens')"></p>


<dtml-if "REQUEST.cookies['blurk']">
   <dtml-var "REQUEST.cookies['blurk']">
<dtml-else>
   no blurk today
</dtml-if>

Also see the relevant portion of the DTML reference guide
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.4.5.html#pgfId-10470
78

and the dtml-snippet

http://zdp.zope.org/projects/zsnippet/snippets/ClientServerInteraction/SetCo
okie


Rik