[Zope-CMF] Cookies in zope...

Casey Duncan c.duncan@nlada.org
Mon, 17 Sep 2001 09:16:01 -0400


On Monday 17 September 2001 09:00 am, Josef Albert Meile allegedly wrote:
> How can I get a cookie from a <dtml-method>, from python.
>
> Thanks.
>

def f(REQUEST):
	cookies = REQUEST.cookies
	mycookie = cookies['mycookie']

or if this is a Python script:

cookies = context.REQUEST.cookies
...

hth,
Casey Duncan