Click here to get back home

mod_perl2 and APR::Request::Cookie error

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
mod_perl2 and APR::Request::Cookie error Jarle H Knudsen 10-29-2006
Posted by Jarle H Knudsen on October 29, 2006, 3:22 pm
Please log in for more thread options


This code below works fine, but when I uncomment the line
my $jar = $r->jar;
it get an Internal Server Error.

The error_log says:

[Sun Oct 29 15:11:55 2006] [error] [client xxx.xxx.xxx.xxx] Can't locate
object method "jar" via package "Apache2::RequestRec" at
/home/webadmin/xxx.xxxxx.com/modperl/Iby/login.pm line 16.\n

mod_perl 2.0.2
apache 2.0.51
Fedora Core Linux

Any suggestions?

--------code--------

package Iby::login;

use strict;
use warnings;

use Apache2::Reload;
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use APR::Request::Cookie;
use Apache2::Const -compile => qw(OK);

sub handler {
my $r = shift;

# my $jar = $r->jar;

$r->content_type('text/plain');
print "mod_perl 2.0 rocks!\n";
print "$ENV\n";

return Apache2::Const::OK;
}

1;

--
jhk

Similar ThreadsPosted
HTTP::Cookie won't store sent cookie March 17, 2005, 4:28 pm
Error installing Apache::Request October 23, 2006, 4:47 pm
CGI.pm/modperl2 and intermittent missing POST data July 15, 2006, 3:18 am
Apache2::Cookie August 23, 2005, 12:52 am
CGI Cookie Path Question December 26, 2005, 10:53 am
Extract Session Cookie February 23, 2007, 3:29 am
Perl module for cookie/logon/session management with Apache May 10, 2007, 12:40 pm
Error: RCPT TO: error (550 relay not permitted) February 11, 2006, 1:39 pm
GD.c: 533: error: syntax error before "void" March 24, 2006, 10:15 am
SNMP Set Request July 26, 2004, 8:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap