Design Specs: Session Cleanup

From WormBaseWiki
Revision as of 20:36, 28 January 2011 by Xiaoqi (talk | contribs)
Jump to navigationJump to search

session storage

Session::Store::DBI

  __PACKAGE__->config->{'Plugin::Session'} = {
              expires   => 3600,
	      dbi_dbh   => 'Schema', 
	      dbi_table => 'sessions',
	      dbi_id_field => 'id',
	      dbi_data_field => 'session_data',
	      dbi_expires_field => 'expires',
  };

note: Catalyst::Plugin::Session::Store::DBIC does not compatible with Session::PerUser plugin.

session cleanup

use Catalyst::Plugin::Scheduler to clean up expired sessions in a cron-like fashion