[Catalyst] how to set all values in Session Session::Store::DBI
Session::State::Cookie
Andy Grundman
andy at hybridized.org
Mon Feb 13 18:10:17 CET 2006
chveerendra nadh wrote:
> hi i have bit probles ..............
>
> when i m using Session Session::Store::DBI Session::State::Cookie
>
> i have write in my APPlication
>
> Shop->config->{session} = {
> dbi_dsn => $DB_NAME,
> dbi_user => $DB_USER,
> dbi_pass => $DB_PASSWD,
> dbi_table => "Shop::Model::Session",
> };
>
>
> but it show error like this ........................
>
>
> [Mon Feb 13 22:07:15 2006] [error] Session::Store::DBI: No session
> configuration found, please configure dbi_dbh or dbi_dsn at
> /usr/local/lib/perl5/5.8.7/NEXT.pm line 75\nCompilation failed in
> require at (eval 69) line 3.\n
Are you calling the above config line before you call Shop->setup() ?
Add this line right before your setup call to check the config, and look for
your session data there:
warn Data::Dumper::Dumper( Shop->config );
Also, dbi_table should be the actual table name, not a class name.
-Andy
More information about the Catalyst
mailing list