/usr/share/perl5/Catalyst/Plugin/Session/State.pm is in libcatalyst-plugin-session-perl 0.40-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #!/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<Catalyst::Plugin::Session> 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<sessionid> (accessor) at B<prepare> time using data in the request.
Note that this must happen B<before> other C<prepare_action> instances, in
order to get along with L<Catalyst::Plugin::Session>. Overriding
C<prepare_cookies> is probably the stablest approach.
=item finalize
Modify the response at to include the session ID if C<sessionid> is defined,
using whatever scheme you use. For example, set a cookie,
=back
=cut
|