[Zope] setting multiple cookies

Eric Walstad eric@walstads.net
Tue, 21 Aug 2001 16:50:22 -0700


Hi Ray,

Have you tried:
appendCookie(name, value)
Returns an HTTP header that sets a cookie on cookie-enabled browsers with a
key "name" and value "value".
If a value for the cookie has previously been set in the response object,
the new value is appended to the old
one separated by a colon.
Permission
Always available

HTH,
Eric.

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> rprice@collegenet.com
> Sent: Tuesday, August 21, 2001 4:31 PM
> To: zope@zope.org
> Subject: [Zope] setting multiple cookies
>
>
> I am having a problem setting multiple cookies. From a Python method the
> following code:
>
>     RESPONSE.setCookie('language', 'Python')
>     RESPONSE.setCookie('server', 'Zope')
>
> only sets the 'language' cookie on the clients I've tested.  Has
> anybody else
> seen this behavior in any Zope versions?
>
> FYI when I run the same code through Medusa using the old bobo
> libraries I have
> the same problem.
>
> Ray
>
>
> _______________________________________________
> 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 )