You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Darragh Gammell <db...@gmail.com> on 2007/12/12 01:40:46 UTC

$m->session

Does anyone know what $m->session pertains to. ie. Is it part of a mod_perl
or mason package.

I am attempting to run this command on a site using mod_perl2, Apache2 and
Mason 1.37 but keep getting an error:

Can't locate object method "session" via package
"HTML::Mason::Request::ApacheHandler" at /home/mc2/public_html/autohandler
line 404.

*404:*  if ($m->session->{textonly} eq "on") {
Its from code used on a website Im trying to relocate to a new server.

Any indications would be helpful.

Thanks

Darragh

Re: $m->session

Posted by Darragh Gammell <db...@gmail.com>.
>From the mason devel Manual we see:

$m, the Mason request object, provides an analogous API for Mason. Almost
all Mason features not activated by syntactic tags are accessed via $m
methods.

But looking under "HTML::Mason::Request - Mason Request Class" there is no
reference to $m->session. This is where I'm getting confused.

Is it possible that whomever wrote this website created their own Object
called $m->session and thats why I cant find it anywhere?

My Apologies for the silly questions, trying to get to grips with new
technologies with no developers present.

Regards

Darragh


On Dec 12, 2007 11:48 AM, Aaron Dalton <aa...@perlkonig.com> wrote:

> $m->session is a Mason construct.
>
> --
> Aaron Dalton
> http://perlkonig.com
>
>