Hi All!<[EMAIL PROTECTED]>I'm planing to port a web application for mod_perl1 ro mod_perl2.
I've carefully read to porting pages related to that
(http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I haven't
found solutions to my simple problems.
1. How can I read a cookie
[EMAIL PROTECTED] wrote:
Hi All!
I'm planing to port a web application for mod_perl1 ro mod_perl2.
I've carefully read to porting pages related to that
(http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I haven't
found solutions to my simple problems.
1. How can I read a coo
There's a few recipes here:
http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_Using_libapreq2
Would using t Apache2::Cookie work just as well?
On Mon, 13 Mar 2006, Foo Ji-Haw wrote:
There's a few recipes here:
http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_Using_libapreq2
Would using t Apache2::Cookie work just as well?
Apache2::Cookie is one of the glue modules for libapreq2. You have to
install li
Apache2::Cookie is one of the glue modules for libapreq2. You have to
install libapreq2 to get Apache2::Cookie.
Ok. I am crazy about libapreq2 because it is a direct replacement to
CGI. I thought this is the preferred way against continuing CGI (for
performance reasons) in the modperl envir
Foo Ji-Haw wrote:
Ok. I am crazy about libapreq2 because it is a direct replacement to
CGI. I thought this is the preferred way against continuing CGI (for
performance reasons) in the modperl enviromment. Or am I missing
something here?
Some people have existing code using CGI::Cookie, or wan
Some people have existing code using CGI::Cookie, or want their new
code to work under CGI. The performance difference is pretty small
in any significant web app.
Hey Perrin,
So what you are saying, is that it is generally fine in a production
environment to continue using CGI::Cookie? But
Foo Ji-Haw wrote:
So what you are saying, is that it is generally fine in a production
environment to continue using CGI::Cookie?
Yes.
But it does not infer that
using CGI is just as well right?
The CGI.pm module? That's fine too.
- Perrin
That's odd. I thought I remembered reading up about discouraging the use
of the CGI module in optimising modperl.
The rationale (if I remembered right) is that CGI depends on the %ENV,
which populating it for every call is an effort. The recommended way is
to turn of SetupEnv, and grab as much s
Foo Ji-Haw wrote:
That's odd. I thought I remembered reading up about discouraging the use
of the CGI module in optimising modperl.
The rationale (if I remembered right) is that CGI depends on the %ENV,
which populating it for every call is an effort. The recommended way is
to turn of SetupEnv,
Sure, libapreq and its included modules are the fastest way to parse
parameters and handle cookies. However, hardly anyone needs that
speed. Most people are spending all of their time talking to a
database or doing other I/O tasks, or have pretty minimal web traffic,
or both.
That's true. I
On 3/13/06 3:07 PM, "Boysenberry Payne" <[EMAIL PROTECTED]> wrote:
> Since we're on the subject of CGI vs libapreq. I've moved to using
> Apache2::Request
> and APache2::Cookie with no problems. Now I'm wondering if there
> isn't an equivalent
> for the rest of what CGI.pm offers. In partic
Since we're on the subject of CGI vs libapreq. I've moved to using
Apache2::Request
and APache2::Cookie with no problems. Now I'm wondering if there
isn't an equivalent
for the rest of what CGI.pm offers. In particular, I wondering about
it's html tag output.
Are there any Apache2 equivalent
Thanks for the advices Fred.
>> Hi All!
>>
>> I'm planing to port a web application for mod_perl1 ro mod_perl2.
>>
>> I've carefully read to porting pages related to that
>> (http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I
>> haven't
>> found solutions to my simple problem
hCookie
which is a fully functional module to do exactly this.
>
> Any idea?
> Younes
>
> Message d'origine
>>Date: Thu, 09 Mar 2006 01:45:40 -0800
>>De: Fred Moyer <[EMAIL PROTECTED]>
>>A: [EMAIL PROTECTED]
>>Copie à: modperl@perl.apache.org
>>
'origine
>Date: Fri, 10 Mar 2006 09:04:58 -0800 (PST)
>Sujet: Re: Re: Modperl2 question
>De: "Fred Moyer" <[EMAIL PROTECTED]>
>A: [EMAIL PROTECTED]
>Copie à: modperl@perl.apache.org
>
>[please cc the modperl@perl.apache.org list on all list response thre
And dump the cookie to $r->log->debug to
make sure that the values are set correctly.
Take a close look at those cooking recipes. They use CGI::Cookie so you
should be able to do exactly what they are doing.
>
> Younes
>
> Message d'origine
>>Date: Fri, 10 Mar
17 matches
Mail list logo