Catalyst::Plugin::Session::Store::DBICatalyst::Plugin::Session::Store::DBI can store your sessions in a database. | |
Download |
Catalyst::Plugin::Session::Store::DBI Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Andy Grundman
- Publisher web site:
- http://search.cpan.org/~agrundma/Catalyst-Plugin-Session-Store-DBI-0.11/lib/Catalyst/Plugin/Session/Store/DBI.pm
Catalyst::Plugin::Session::Store::DBI Tags
Catalyst::Plugin::Session::Store::DBI Description
Catalyst::Plugin::Session::Store::DBI can store your sessions in a database. Catalyst::Plugin::Session::Store::DBI can store your sessions in a database.SYNOPSIS # Create a table in your database for sessions CREATE TABLE sessions ( id char(72) primary key, session_data text, expires int(10) ); # In your app use Catalyst qw/Session Session::Store::DBI Session::State::Cookie/; # Connect directly to the database MyApp->config->{session} = { expires => 3600, dbi_dsn => 'dbi:mysql:database', dbi_user => 'foo', dbi_pass => 'bar', dbi_table => 'sessions', }; # Or use an existing database handle from a DBIC/CDBI class MyApp->config->{session} = { expires => 3600, dbi_dbh => 'MyApp::M::DBIC', dbi_table => 'sessions', }; # ... in an action: $c->session->{foo} = 'bar'; # will be saved Requirements: · Perl
Catalyst::Plugin::Session::Store::DBI Related Software