----- Original Message -----
From: "Charles" <[EMAIL PROTECTED]>
To: "Chris Pizzo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 1:51 PM
Subject: RE: Weird problem with cookies on Netscape with apache running a
virtualhost


> Chris,
>
> It is a bit difficult to determine your problem but here are a few
> suggestions:
>
> 1) Revert to $r->headers_out->set('Set-Cookie',
> cookie(-name=>'cookie_name', -value=>'value_here'));  If this works, check
> for a difference in the module you are using.

This works but I need to set multiple cookies.  Im doing this:

        my $c = new CGI::Cookie(-name => 'SID', -value => 'stuff', -expires
=> '+6M');
        my $cc = new CGI::Cookie(-name => 'BUD', -value =>
'Wassup', -expires => '+6M');

        $r->headers_out->set('Set-Cookie',$cc);
        $r->headers_out->set('Set-Cookie',$c);

         $r->cgi_header_out('Location',"mypage.html");
         $r->send_http_header;

This only sets one of the cookies ($c).  How do I set multiple cookies?

CGI::Cookie says to concatenate using a ";" but that errors out.

Sorry, bit of a novice here.
-Chris

Reply via email to