|o||MyApp::Schema - your DBIx::Class::Schema class|
|o||MyApp::Schema::Session - your session table class|
|o||MyApp::Model::DBIC - your Catalyst::Model::DBIC::Schema class|
For more information, please see Catalyst::Model::DBIC::Schema.
Number of seconds for which sessions are active.
Note that no automatic cleanup is done on your session data. To delete expired sessions, you can use the delete_expired_sessions method with Catalyst::Plugin::Scheduler.
The name of the field on your sessions table which stores the session ID. Defaults to id.
The name of the field on your sessions table which stores session data. Defaults to session_data for compatibility with Catalyst::Plugin::Session::Store::DBI.
The name of the field on your sessions table which stores the expiration time of the session. Defaults to expires.
Your sessions table should contain the following columns:
id CHAR(72) PRIMARY KEY session_data TEXT expires INTEGER
The id column should probably be 72 characters. It needs to handle the longest string that can be returned by generate_session_id in Catalyst::Plugin::Session, plus another eight characters for internal use. This is less than 72 characters when SHA-1 or MD5 is used, but SHA-256 will need all 72 characters.
The session_data column should be a long text field. Session data is encoded using MIME::Base64 before being stored in the database.
Note that MySQL TEXT fields only store 64 kB, so if your session data will exceed that size youll want to use MEDIUMTEXT, MEDIUMBLOB, or larger. If you configure your DBIx::Class::ResultSource to include the size of the column, you will receive warnings for this problem:
See add_columns in DBIx::Class::ResultSource for more information.
The expires column stores the future expiration time of the session. This may be null for per-user and flash sessions.
Note that you can change the column names using the id_field, data_field, and expires_field configuration parameters. However, the column types must match the above.
Daniel Westermann-Clark <email@example.com>
o Andy Grundman, for Catalyst::Plugin::Session::Store::DBI o David Kamholz, for most of the testing code (from
o Yuval Kogman, for assistance in converting to
o Jay Hannah, for tests and warning when session size
exceeds DBIx::Class storage size.
Copyright (c) 2006 - 2009 the Catalyst::Plugin::Session::Store::DBIC AUTHOR as listed above.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||CATALYST::PLUGIN::SESSION::STORE::DBIC (3)||2013-07-27|