[mod_python] multiple cookies

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Oct 16 21:53:48 EST 2001


yes, use req.headers_out.add()

Grisha

On Tue, 16 Oct 2001, Karl Diedrich wrote:

> 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()
>
>




More information about the Mod_python mailing list