Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Which Cookie module for mod_perl 1.99?

by matija (Priest)
on Aug 02, 2006 at 18:13 UTC ( [id://565283]=perlquestion: print w/replies, xml ) Need Help??

matija has asked for the wisdom of the Perl Monks concerning the following question:

I am writing an application for a client who is hosting it with a third party. The third party is willing to install Perl modules for me, but not willing to change their mod_perl instalation, which is mod_perl 1.99 under apache 2.0.(something).

I have attempted to duplicate the clients setup on my server, but I made a crucial mistake: while I was using mod_perl 1.x, it wasn't 1.99.

Therefore I used Apache::Cookie for my cookie handling.

Now the hosting guy tells me Apache::Cookie doesn't support mod_perl 1.99. I checked, and he is right: the Makefile contains a check that rejects mod_perl 1.99.

What Cookie module should I use? I don't want to use CGI, because I'm getting my parameters via POST and I have seen bad behaviour when missing Apache requests and CGI (when doing POST, GET is OK).

So am I dead? What module can I use in order to get cookies working under mod_perl 1.99?

Replies are listed 'Best First'.
Re: Which Cookie module for mod_perl 1.99?
by jaa (Friar) on Aug 03, 2006 at 09:20 UTC

    Watch out for the "Great Mod_Perl Rename Debacle"... http://perl.apache.org/docs/2.0/rename.html

    here is a quote:

    Concurrent with these changes, a decision was also made to refuse to install mod_perl 2 in the same Perl tree as any installed mod_perl 2 package of version prior to 1.999_22.

    So you need to know that mod_perl 1.999 to 1.999_21 are not usually compatible with Apache2 modules. You need to make sure that your mod_perl is >= 1.999_22 to use the Apache2 modules.

Re: Which Cookie module for mod_perl 1.99?
by jdtoronto (Prior) on Aug 03, 2006 at 00:00 UTC
    Isn't mod_perl 1.99 essentially pre-release mode_perl 2?

    jdtoronto

Re: Which Cookie module for mod_perl 1.99?
by EvanCarroll (Chaplain) on Aug 02, 2006 at 18:24 UTC
    I would guess this one


    Evan Carroll
    www.EvanCarroll.com

      But will it work with mod_perl 1.99? I thought 1.99 was mod_perl 1, not mod_perl 2?

      If it's really mod_perl 2, than I'm probably really in the soup - god knows what else will fail....

        I don't know for sure. I was using mod_perl2, when I adopted Apache2, even though libapreq2 was in beta, ( and because of that so was mod_perl2. But because of the wording of this:
        Apache2::Cookie::fetch now expects an $r object as (second) argument, although this isn't necessary in mod_perl 2 if Apache2::RequestUtil is loaded and 'PerlOptions +GlobalRequest' is in effect.
        I would say Apache2::Cookie is the right module.


        Evan Carroll
        www.EvanCarroll.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://565283]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found