[Zope] Cookie pointer.

Steve Drees drees@the-bridge.net
Fri, 22 Sep 2000 17:05:44 -0500


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