3 package Catalyst::Plugin::Session::State;
16 Catalyst::Plugin::Session::State - Base class for session state
21 package Catalyst::Plugin::Session::State::MyBackend;
22 use base qw/Catalyst::Plugin::Session::State/;
26 This class doesn't actually provide any functionality, but when the
27 C<Catalyst::Plugin::Session> module sets up it will check to see that
28 C<< YourApp->isa("Catalyst::Plugin::Session::State") >>.
30 When you write a session state plugin you should subclass this module this
33 =head1 WRITING STATE PLUGINS
35 To write a session state plugin you usually need to extend two methods:
39 =item prepare_(action|cookies|whatever)
41 Set C<sessionid> (accessor) at B<prepare> time using data in the request.
43 Note that this must happen B<before> other C<prepare_action> instances, in
44 order to get along with L<Catalyst::Plugin::Session>. Overriding
45 C<prepare_cookies> is probably the stablest approach.
49 Modify the response at to include the session ID if C<sessionid> is defined,
50 using whatever scheme you use. For example, set a cookie,