Re: [Zope] cookie question
11 Nov
1999
11 Nov
'99
4:33 p.m.
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
9643
Age (days ago)
9643
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrew M. Kuchling