[Zope] Simple Persistent Cookie

Charlie Reiman creiman@kefta.com
Mon, 3 Mar 2003 09:26:08 -0800


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Luis
> Cortes
> Sent: Saturday, March 01, 2003 12:43 PM
> To: Zope Mailing List
> Subject: RE: [Zope] Simple Persistent Cookie
>
>
> I thought this would work, does anybody have a clue why it doesn't?
>
> <dtml-call
> expr="RESPONSE.setHeader('Set-Cookie','lastVisited=1999/01/01;expi
> res=2003/0
> 3/03')">
> <dtml-var lastVisited>

This has nothing to do with zope. You aren't following the spec for cookies.
Cookies are very picky and you must follow the Netscape spec as closely as
you can. In particuar, you don't have spaces after the semicolons and your
date format is wrong. You probably should also set a domain and path.