A server issues Set-Cookie: a client replies with Cookie:
o _
/|/ | Jerrad Pierce \ | __|_ _|
/||/ http://pthbb.org . | _| |
\|| _.-~-._.-~-._.-~-._@" _|\_|___|___|
> -----Original Message-----
> From: Drew Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 08, 2000 18:11
> To: Paul
> Cc: modperl
> Subject: Re: Apache, Mod_Perl and Custom Access/Authentication
>
>
> Paul wrote:
> >
> > > Drew wrote:
> > > > Going by your previous example, you should use
> > > > $cookie = $r->header_in('Set-Cookie');
> >
> > Quick reality check here -- I'm easy to confuse. =o)
> >
> > Shouldn't that be
> >
> > $cookie = $r->header_in('Cookie')
> >
> > to get cookies the browser sends, and then something like
> >
> > $r->headers_out->add('Set-Cookie' => "$name=$val")
> >
> > to place new ones?
> I'm pretty sure I'm right on this one. ;-) $r->headers_in|out are
> getting/setting actual HTTP headers. Last I checked, the HTTP
> spec says
> you use 'Set-Cookie' for cookies. Of course, I am frequently wrong as
> well, but I don't think I am in this case.
>
>
> --
> Drew Taylor
> Vialogix Communications, Inc.
> 501 N. College Street
> Charlotte, NC 28202
> 704 370 0550
> http://www.vialogix.com/
>