On 28 Jan 2007, at 08:37, Louis-David Mitterrand wrote:

> Hello,
>
> In a debian etch apache2.2+mod_perl2 environment I'm trying to use an
> Apache::Session::Postgres backend for
> MasonX::Request::WithApacheSession:
>
>       request_class => 'MasonX::Request::WithApacheSession',
>       session_cookie_domain  => 'critikart.fr',
>       session_class => 'Apache::Session::Postgres',
>       session_data_source => 'dbi:Pg:dbname=gesci_sessions',
>       session_use_cookie => 1,
>
> but I get this error message:
>
>       Some or all of the required parameters for your chosen session class
>       (Apache::Session::Postgres) were provided.  The following parameters
>       were missing: handle\n
>
> However the "dbi:Pg:dbname=gesci_sessions" backend works fine I try to
> initialize it in the traditional DBI way further down in the  
> handler.pl.
>
> Also, using Apache::Session::File works fine:
>
>       session_class          => 'Apache::Session::File',
>       session_directory      => '/tmp/sessions/data',
>       session_lock_directory => '/tmp/sessions/locks',
>
> What did I miss?

Hello,
        Have you tried passing it a DBI handle, rather than the connection  
details? i.e.

        handle => $dbi,

Thanks
     Robin...

Robin Darby
[EMAIL PROTECTED]



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to