[Zope] cookie question
Andrew M. Kuchling
akuchlin@mems-exchange.org
Thu, 11 Nov 1999 11:33:59 -0500 (EST)
Sam Gendler writes:
>It isn't very clear, from the dtml documentation, just how to use the
>SetCookie function. I can see how to set a name value pair, but not how
>to set the other attributes of the cookie (expiry, secure, etc...).
Specify additional attributes as keyword arguments:
RESPONSE.setCookie('session', '42',
expires = 'Thu Jan 1 ...',
domain = '.mems-exchange.org',
path = '/z/process/builder/',
max_age = 3600,
comment = 'Eeek!',
secure = 1)
You can add none of the additional arguments, or any combination of
them.
--
A.M. Kuchling http://starship.python.net/crew/amk/
This isn't life in the fast lane, it's life in the oncoming traffic.
-- Terry Pratchett, in alt.fan.pratchett