perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Modperl2 + PerlAccessHandler + Sending Cookie
Date Fri, 10 Mar 2006 17:31:47 GMT
I'm generating the cookie with CGI::Cookie().

I think the problem is elsewhere

>From a PerlResponseHandler, the method I described works,
but I got the problem within a PerlAccessHandler.

Should I delegate the cookie generation to the PerlResponseHandler ?


---Message d'origine----
>Date: Fri, 10 Mar 2006 09:04:58 -0800 (PST)
>Sujet: Re: Re: Modperl2 question
>De: "Fred Moyer" <>
>Copie à:

>There's a few recipes here:

>How are you generating $cookie. You'll likely want to add the cookie in
>any case, to update certain values or timestamps, I can't think of a case
>where I haven't done so. You may want to look at Apache2::AuthCookie
>which is a fully functional module to do exactly this

----Message d'origine----
>Sujet: Modperl2 + PerlAccessHandler + Sending Cookie
>Date: Fri, 10 Mar 2006 18:06:23 +0100
>Hi All!
>I'm wondering if there is a correct way to send a cookie in a PerlAccessHandler.
>I've tried something like:
>$r->headers_out->add('Set-Cookie' => $cookie);
>and even:
>$r->err_headers_out->add('Set-Cookie' => $cookie);
>whithout success
>I would like to send the cookie if it doesn't exists and 
>leave in the request if it already exists.
>Any idea?

View raw message