Question

I'm writing codes which are originally from http://modperlbook.org/html/B-18-1-Apache-Session-8212-Maintain-Session-State-Across.html to use session.

But I got an error as below: " The following parameter was passed in the call to HTML::Mason::Request->new() but was not listed in the validation options: ah\n\nStack:\n "

When I looked at Request.pm, 'ah' is in its doc part, but not in PACKAGE->valid_params. Do I use 'my $status = $ah->handle_request($r);' wrongly?

Oh, I'm using HTML:Mason 1.42-2, Apache2 and perl5.

Thanks,

Yang

Was it helpful?

Solution

figure out what should be done.

When creating the object for 'new HTML::Mason::Interp', explicitly ask

'request_class => 'HTML::Mason::Request::ApacheHandler'.

The default 'HTML::Mason::Request' won't support 'ah', but the 'ApacheHandler' does.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top