in reply to Configuring Catalyst Session data for sessions::store::dbi

nothing sessions::store::dbi

catalyst sessions::store::dbi

http://search.cpan.org/~janus/Catalyst-Authentication-Store-DBI-0.01/MANIFEST

http://cpansearch.perl.org/src/JANUS/Catalyst-Authentication-Store-DBI-0.01/t/10_auth.t

Oh look, no Session sect ion

$ENV{'TESTAPP_CONFIG'} = { 'name' => 'TestApp', 'Model::DBI' => { 'dsn' => 'dbi:SQLite:' . $ENV{'TESTAPP_DB_FILE' +}, }, 'authentication' => { 'default_realm' => 'users', 'realms' => { 'users' => { 'credential' => { 'class' => 'Password', 'password_field' => 'password', 'password_type' => 'clear', }, 'store' => { 'class' => 'DBI', 'user_table' => 'user', 'user_key' => 'id', 'user_name' => 'name', 'role_table' => 'role', 'role_key' => 'id', 'role_name' => 'name', 'user_role_table' => 'userrole', 'user_role_user_key' => 'user', 'user_role_role_key' => 'role', }, }, }, }, };

Replies are listed 'Best First'.
Re^2: Configuring Catalyst Session data for sessions::store::dbi
by PoliceCoP (Acolyte) on Jan 08, 2012 at 11:47 UTC
    UPDATED:

    I got it working, this is the complete .conf entry:

    <Plugin::Session> expires 1200 dbi_dbh DB dbi_table session dbi_id_field id dbi_data_field session_data dbi_expires_field expires </Plugin::Session>