I learned this one the hard way.


Had a python method
id: expireTime
parameters: self
body:
t = self.ZopeTime() + (1.0/192.0) # 7.5 minutes in the future
t = t.toZone('GMT')

return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT")
------------------------------------------------------

Was trying the following

<dtml-call "RESPONSE.setCookie('name', 'value', path='/',
expires=expireTime)">

This does NOT work.

THe following works MUCH better

<dtml-call "RESPONSE.setCookie('name', 'value', path='/',
expires=expireTime())">



--
Steve Drees
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
"A problem well-stated is a problem half-solved."
http://www.christianmp3zone.com/savanna


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to