perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yp...@club-internet.fr
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 ?

Younes


---Message d'origine----
>Date: Fri, 10 Mar 2006 09:04:58 -0800 (PST)
>Sujet: Re: Re: Modperl2 question
>De: "Fred Moyer" <fred@taperfriendlymusic.org>
>A: yperl@club-internet.fr
>Copie à: modperl@perl.apache.org

>There's a few recipes here:
>http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_Using_libapreq2

>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----
>De: yperl@club-internet.fr
>A: yperl@club-internet.fr
>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?
>
>Thanks
>Younes
>


Mime
View raw message