Catalyst::Plugin::Session - SYNOPSIS expanded, full pod coverage
[catagits/Catalyst-Plugin-Session.git] / lib / Catalyst / Plugin / Session / State.pm
CommitLineData
9e447f9d 1#!/usr/bin/perl
2
3package Catalyst::Plugin::Session::State;
4
5use strict;
6use warnings;
7
9e447f9d 8__PACKAGE__;
9
10__END__
11
12=pod
13
14=head1 NAME
15
16Catalyst::Plugin::Session::State - Base class for session state
c80e9f04 17preservation plugins.
9e447f9d 18
19=head1 SYNOPSIS
20
c80e9f04 21 package Catalyst::Plugin::Session::State::MyBackend;
22 use base qw/Catalyst::Plugin::Session::State/;
9e447f9d 23
24=head1 DESCRIPTION
25
c80e9f04 26This class doesn't actually provide any functionality, but when the
27C<Catalyst::Plugin::Session> module sets up it will check to see that
28C<< YourApp->isa("Catalyst::Plugin::Session::State") >>.
29
30When you write a session state plugin you should subclass this module this
31reason only.
32
33=head1 WRITING STATE PLUGINS
34
35To write a session state plugin you usually need to extend C<finalize> and
36C<prepare> (or e.g. C<prepare_action>) to do two things:
37
38=over 4
39
40=item *
41
42Set C<sessionid> (accessor) at B<prepare> time using data in the request
43
44=item *
45
46Modify the response at B<finalize> to include the session ID if C<sessionid> is
47defined.
48
49=back
50
9e447f9d 51=cut
52
53
c80e9f04 54
55
56