[Zope] Cookie

Garry Steedman gs@styrax.com
Wed, 8 Aug 2001 13:09:40 +0000


Arthur,

if you dont specify the expiry date, the cookie is destroyed when the 
browser is closed: you need to specify an expiry date, e.g. 

<dtml-call "RESPONSE.setCookie('favorite_language', 'Python',
                               expires='Wed, 19 Feb 2020 14:28:00 GMT')"> 

have a look at:

http://www.zope.org/Members/BwanaZulia/cookies

cheers,

Garry

On 8 Aug 2001, at 13:06, Artur Mozdzynski wrote:

From:           	"Artur Mozdzynski" <artur@abfab.nl>
To:             	<zope@zope.org>
Subject:        	[Zope] Cookie
Date sent:      	Wed, 8 Aug 2001 13:06:22 +0200

> How to store a cookie in Zope?
> With RESPONSE.setCookie(name, value) I manage only to set a
> per-session cookie, which is not stored on a client computer.
> 
> Zope reference gives such a header for this method:
> setCookie(name, value, **kw),
> but the **kw argument is not described.  What it is?
> 
> Artur
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )


+-------------------------------------------+
  Garry Steedman      mailto:gs@styrax.com  
  Styrax Associates  http://www.styrax.com/ 

  "The Good Man has no shape."            
+-------------------------------------------+