[mod_python] multiple cookies

Karl Diedrich diedrich at myriad.com
Tue Oct 16 17:36:00 EST 2001


Is it possible to set multiple cookies through the Request object?

Request req

req.headers_out[ "Set-Cookie"]  = "first=value1"
This works to set the first cookie

req.headers_out[ "Set-Cookie"]  = "second=value2"
The second cookie will overwrite the  first in the req.headers_out list
before calling
req.send_http_headers()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diedrich.vcf
Type: text/x-vcard
Size: 217 bytes
Desc: Card for Karl Diedrich
Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20011016/ded0ede6/diedrich-0003.vcf


More information about the Mod_python mailing list