Hi Louis,
Here's what I use w/ Netdisco w/out any problems :
my $ah = new HTML::Mason::ApacheHandler(
43 args_method => 'mod_perl',
44 comp_root => '/usr/local/netdisco/html',
45 data_dir => '/usr/local/netdisco/mason',
46 request_class => 'MasonX::Request::WithApacheSession',
47 session_class => 'Apache::Session::Postgres',
48 session_commit => 1,
49 session_use_cookie => 1,
50 session_cookie_expires => '+1y',
51 session_cookie_name => 'netdisco',
52 #!! Change the following lines to match your Database Configuration.
53 session_data_source => 'dbi:Pg:dbname=netdisco',
54 session_user_name => 'netdisco',
55 session_password => 'PASSWORDHERE',
56 );
1 -- $Id: sessions.sql,v 1.3 2003/02/27 18:46:31 max Exp $
2
3 DROP TABLE sessions;
4
5 CREATE TABLE sessions (
6 id char(32) NOT NULL PRIMARY KEY,
7 creation TIMESTAMP DEFAULT now(),
8 a_session text
9 );
Full code at http://netdisco.cvs.sourceforge.net/netdisco/netdisco/
-m
On Sun, Jan 28, 2007 at 09:37:22AM +0100, 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?
>
> Thanks,
>
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users