Oops, forgot to send this one to the list...
-Original Message-
From: Eric Walstad [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 3:40 PM
To: Steve Drees
Subject: RE: [Zope] Cookies & Expiration
Hi Steve,
Your solution is very cool! I'm going to use
On Fri, 3 Nov 2000, Steve Drees wrote:
> Have a pythonmethod
>
> ID expireIn1Week
> Parameter List self
> _BODY__
> t = self.ZopeTime() + 7.0 # 1 week in the future
> t = t.toZone('GMT')
>
> return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT")
It (strftime) is correct as long as
> However, I'd like to have this cookie set to expire one week from the date
> of the current visit. i.e., if its 12:30 on 11/3 when a surfer visits my
> site, I want Zope to set their lastVisited cookie to expire on 12:30 on
> 11/10.
Have a pythonmethod
ID expireIn1Week
Parameter List self