[mod_python] How te send many cookies using one request ?

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sat May 18 11:17:12 EST 2002


headers_out (as any mod_python table object) has an add() method which
will let you set multiple values with the same key

grisha

On Sat, 18 May 2002, Mateusz Korniak wrote:

> I tried:
> 1) # multiple value cookie
> 	req.headers_out["Set-Cookie"] = user.out_cookie().output("")
>
> 2) #many single value cookies
> 	for cookie in user.out_cookies():
> 		req.headers_out["Set-Cookie"] = cookie.output("")
>
> both sends only one Set-Cookie header with one value :(
>
> TIA
> --
> Mateusz Korniak
> ANT sp z o.o. http://www.ant.gliwice.pl/
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list