That is a good news. Thanks Gerald.

Andrew

-----Original Message-----
From: Gerald Richter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 5:31 AM
To: [EMAIL PROTECTED]
Cc: Andy Lim
Subject: Re: How to send mutiple cookie entries?


>
> I found the only way to send the same header multiple times
> was to do something like this:
>
> $req_rec->headers_out->add('Set_Cookie' => $cookie);
>
> which can be called multiple times and will hopefully do
> what you want.
>

That's true. I have a patch here, which will go into 1.3.2 which will allow
you to say

$http_headers_out{'Set-Cookie'} = [ $cookie1, $cookie2 ];

but you have to wait for 1.3.2, which will hopefully be out during the next
two weeks

Retrieving of multiple cookies can be done by splitting the Cookie input
header at the ;

Something like

@cookies = split (/;/, $req_rec->header_in('Cookie'));


Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to