|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
upgrading Apache::AuthCookieDBI application to mod_perl2by geektron (Curate) |
| on Aug 21, 2006 at 16:26 UTC ( #568598=perlquestion: print w/ replies, xml ) | Need Help?? |
|
geektron has asked for the
wisdom of the Perl Monks concerning the following question:
One of our application servers has recently been upgraded to Apache2/mod_perl2 ( Apache v2./ mod_perl 2.0.20 ), and what appeared to be a simple job of converting an Apache::AuthCookieDBI login.cgi to use the new APIs has turned into a ball of confusing wax.
Apache::AuthCookieDBI's login.cgi (or .pl ) looks like this in 1.x:
After I read the renaming documentation and applied the changes, the code should look something like this: Yet, when the handler is fired off, the following error ends up in the error_log:
I thought a simple renaming of my $r = Apache->request(); to my $r = Apache2::RequestUtils->request() would suffice ... but that doesn't seem to be the case. Is there another renaming gotcha (i.e. some prereq) that I'm missing?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||