#!/usr/bin/perl package Catalyst::Plugin::Session::State; use strict; use warnings; __PACKAGE__; __END__ =pod =head1 NAME Catalyst::Plugin::Session::State - Base class for session state preservation plugins. =head1 SYNOPSIS package Catalyst::Plugin::Session::State::MyBackend; use base qw/Catalyst::Plugin::Session::State/; =head1 DESCRIPTION This class doesn't actually provide any functionality, but when the C module sets up it will check to see that C<< YourApp->isa("Catalyst::Plugin::Session::State") >>. When you write a session state plugin you should subclass this module this reason only. =head1 WRITING STATE PLUGINS To write a session state plugin you usually need to extend two methods: =over 4 =item prepare_(action|cookies|whatever) Set C (accessor) at B time using data in the request. Note that this must happen B other C instances, in order to get along with L. Overriding C is probably the stablest approach. =item finalize Modify the response at to include the session ID if C is defined, using whatever scheme you use. For example, set a cookie, =back =cut