
Catalyst::Plugin::Session::Store::CDBI - CDBI sessions for Catalyst

use Catalyst qw/Session Session::Store::CDBI Session::State::Cookie/;
MyApp->config->{session} = {
storage_class => 'MyApp::M::CDBI::Session',
id_field => 'id',
storage_field => 'storage',
expires_field => 'expires',
expires => 3600,
need_commit => 0,
};
# ... in an action:
$c->session->{foo} = 'bar'; # will be saved

Catalyst::Plugin::Session::Store::CDBI is a session storage plugin for Catalyst that uses Class::DBI.
These are implementations of the required methods for a store. See Catalyst::Plugin::Session::Store.
Returns the serialized form of the data passed in.
Returns the deserialized data.

These parameters are placed in the hash under the session key in the configuration hash.
CDBI-subclass that represents the table that stores session-data.
Column name for the primary key. Defaults to 'id'.
Column name used to store the serialized session data. Defaults to 'storage'.
Column name to store the expire time. Defaults to 'expires'.
Session time to live. Defaults to 3600.
Defaults to 0. Set to 1 when the CDBI class has AutoCommit turned off.

Catalyst, Catalyst::Plugin::Session, Class::DBI.

Jason Woodward <woodwardj@jaos.org>
Based on work by Lyo Kato <lyo.kato@gmail.com> Yuval Kogman <nothingmuch@woobling.org> Sebastian Riedel <sri@cpan.org>, Marcus Ramberg <mramberg@cpan.org>, Andrew Ford <andrewf@cpan.org>,

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.