Bon Dia Francesc,

We figured this out recently on Netdisco.  I think the instructions on
masonhq are out of date.

In these is how we are getting MX:R:WAS to work w/ both apache1 and apache2 :
http://netdisco.cvs.sourceforge.net/netdisco/netdisco/netdisco_apache.conf?view=markup
http://netdisco.cvs.sourceforge.net/netdisco/netdisco/netdisco_apache_dir.conf?view=markup

I don't remember what exectly changed, but the INSTALL docs might be up to
date as well.  They cover the setup of apache/mod_perl for mason for
netdisco.

http://netdisco.org/install.html

HTH,
-m

On Thu, Jun 15, 2006 at 11:21:47AM +0200, Francesc Guasch wrote:
> 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