I'm trying to use MasonX::Request::WithApacheSession with mod_perl2
and I can't make it work. I read this:

http://masonhq.com/?WithApacheSession

I have a custom handler, so I think it won't use the variables
from PerlSetVar there. It does nothing.

I tried use it from the $ah, but then it fails to load and returns:

  The 'param_object' parameter ("Apache2::RequestRec=SCALAR(0x845bc48)")
  to Apache::Session::Wrapper->new() does not have the method: 'param'.

I also tried 'MasonX::Request::WithApacheSession2', but then it fails :

  Can't locate Apache/RequestRec.pm in @INC (@INC

Is there an easy way to use sessions with mp2 , or should I go the old
way and tie the Apache::Session:: module to a hash ?

Versions:

HTML::Mason::VERSION 1.33
MasonX::Request::WithApacheSession 0.30
mod_perl-2.0.2
libapreq2-2.07

This is the handler from my module:

my $ah
    = HTML::Mason::ApacheHandler->new
            (
            request_class => 'MasonX::Request::WithApacheSession',
                  session_class          => 'Apache::Session::File',
                  session_directory      => '/tmp/sessions/data',
                  session_lock_directory => '/tmp/sessions/locks',



_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to