[Zope] Cookie

Pino Silvestre ehigionni@hotmail.com
Thu, 06 Feb 2003 16:49:08 +0000


I have a problem with cookies.

For example I have this code:

<dtml-if "REQUEST.has_key('myCookie')">
   <dtml-var myCookie>
<dtml-else>
<dtml-call "RESPONSE.setCookie('myCookie', _.DateTime(), 
expires=_.DateTime()+1)">
<dtml-if>
<dtml-var getCookie>

where getCookie is a simply DTML Method like this:

<dtml-if "REQUEST.has_key('myCookie')">
   Ok cookie <dtml-var myCookie>
<dtml-else>
   No cookie
</dtml-if>

Well, the result is this "No cookie". But the cookie have just been setted. 
Do anybody explain me this strange behavior?

Thank you, Pino


_________________________________________________________________
Comunica in un ’altra dimensione con MSN Extra Storage!  
http://www.msn.it/msnservizi/es/extra_storage_tag/