[Zope] Simple Persistent Cookie

Chris Muldrow muldrow@mac.com
Sat, 1 Mar 2003 14:46:33 -0500


We've had the most luck cross-browser with setheader calls like so:
<dtml-call  
"RESPONSE.setHeader('Set- 
Cookie','sessionid=somevalue;domain=.fredericksburg.com;path=/')">

setCookie wasn't playing nice across some browsers for some reason--i  
think there are archived message on the list about it.
On Saturday, March 1, 2003, at 02:38 PM, Luis Cortes wrote:

> Yep,
>
>   this is true, but does anyone have a simple example of usage.  I'm  
> too
> used to:
>
> Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME;  
> secure
>
> Do you just repeatly call:
>
> setCookie with the different values, like:
>
> <dtml-call expr="RESPONSE.setCookie('NAME', v1)">
> <dtml-call expr="RESPONSE.setCookie('Expires', v2)">
> <dtml-call expr="RESPONSE.setCookie('Domain', v3)">
>
> ???
>
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of J
> Cameron Cooper
> Sent: Saturday, March 01, 2003 11:49 AM
> To: zope@zope.org
> Subject: Re: [Zope] Simple Persistent Cookie
>
>
>>
>>
>> How do I create one with Zope, easily?
>>
>> How do I include the expires, domain, etc?
>>
>>
> The RESPONSE object has cookie methods. Check the API section of the
> Zope online help docs.
>
>         --jcc
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org  
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>