Cannot seem to get this to work together (or with CGI).  Here is a portion of my handler script:

    if ( !$h ) {
        $h = HTML::Mason::CGIHandler->new(

            data_dir => '/mason/data/dir',
            error_format => 'text',
            error_mode => 'fatal',
            allow_globals => ['$DB_SQLite'],
            request_class => 'MasonX::Request::WithApacheSession',
            session_cookie_name => 'SessionName',
            session_cookie_domain => '.example.com',
            session_class => 'Apache::Session::File',
            session_directory => '/mason/sessions/data/dir',
            session_lock_directory => '/mason/sessions/lock/dir',
            session_use_cookie => 1,
            session_cookie_expires => '+20m'

        );
    }

The error I get in the error.log is:

error parsing headers: malformed header 'The 'header_object' parameter ("CGI :Fast=HASH(0x879b104)") to Apache::Session::Wrapper->new() did not pass the 'has a method to set headers' callback'

The perldoc for Apache::Session::Wrapper indicates that when outside of mod_perl "you must provide an object to which the cookie header can be added", but the perldoc for MasonX::R::WAS says "this module takes care of passing the 'header_object' and 'param_object' parameters to  Apache::Session::Wrapper."

Am I missing something in my $h object?

I am using Ubuntu Dapper packages on Mepis, versions:

MasonX::Request::WithApacheSession  0.30
Apache::Session  1.80
Apache::Session::Wrapper  0.31

Any help would be appreciated.

Scott Kiehn






All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to