[mod_python] RE: setting multiple cookies with req.headers_out

Miguel Marques miguel at yorku.ca
Mon May 14 11:57:09 EST 2001


Greetings...
On Mon, 14 May 2001 08:38:52 -0700, Petar Karafezov <petar at metamarkets.com> wrote:
> Hello all -
> 
> I am trying to send more than one cookie in my req.headers_out. The problem
> is that req.headers_out is a dictionary - and if I want to send more than 1
> cookie - only the last one gets send - they all have key 'Set-cookie'.
> 
> I am sure there's a quick and easy solution for this ...I just didn't see
> it. Could anyone share ideas/experience on this issue ?
> 
Just use 

req.headers_out.add('Set-Cookie', ...)

as many time as you need.

						Miguel

C. Miguel Marques, York University, Computing & Network Services
e-mail: miguel at yorku.ca, voice: (416)736-2100x22684, fax: (416)736-5830






More information about the Mod_python mailing list