You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Andrew Fritz <af...@uh.edu> on 2003/03/13 21:24:38 UTC
mod_perl not sending cookies
I'm using Apache:AuthCookie. I have set up a basic test site. It appears
that AuthCookie never send the cookie even though the call to:
$r->err_headers_out->add("Set-Cookie" => $cookie);
is there. If I modify the call to include a simple cookie:
$r->err_headers_out->add("Set-Cookie" => 'a=b');
it works.
The value of $cookie is:
jza70AuthHandler_JZA70=\"Thisisatest\"; expires=Tue, 11 Mar 2003
06:33:50 GMT; path=/thisisatest; domain=jza70
The expires field is from a log of a few days ago, but was valid (about
24 hours in the future) when it was sent.
Any thoughts are apreciated.
Andrew Fritz
Re: mod_perl not sending cookies
Posted by Richard Clarke <ri...@likewhoa.com>.
Are you using Apache::Cookie?
If so,
#same as $cookie->bake
$r->err_headers_out->add("Set-Cookie" => $cookie->as_string);
Are you doing this?
Richard.
----- Original Message -----
From: "Andrew Fritz" <af...@uh.edu>
To: <mo...@perl.apache.org>
Sent: Thursday, March 13, 2003 8:24 PM
Subject: mod_perl not sending cookies
> I'm using Apache:AuthCookie. I have set up a basic test site. It appears
> that AuthCookie never send the cookie even though the call to:
> $r->err_headers_out->add("Set-Cookie" => $cookie);
> is there. If I modify the call to include a simple cookie:
> $r->err_headers_out->add("Set-Cookie" => 'a=b');
> it works.
>
> The value of $cookie is:
> jza70AuthHandler_JZA70=\"Thisisatest\"; expires=Tue, 11 Mar 2003
> 06:33:50 GMT; path=/thisisatest; domain=jza70
>
> The expires field is from a log of a few days ago, but was valid (about
> 24 hours in the future) when it was sent.
>
> Any thoughts are apreciated.
>
> Andrew Fritz
>
>
>
>