1Catalyst::Plugin::SessiUosne:r:SCtoantter(i3b)uted PerlCDaotcaulmyesntt:a:tPiloungin::Session::State(3)
2
3
4

NAME

6       Catalyst::Plugin::Session::State - Base class for session state
7       preservation plugins.
8

SYNOPSIS

10           package Catalyst::Plugin::Session::State::MyBackend;
11           use base qw/Catalyst::Plugin::Session::State/;
12

DESCRIPTION

14       This class doesn't actually provide any functionality, but when the
15       "Catalyst::Plugin::Session" module sets up it will check to see that
16       "YourApp->isa("Catalyst::Plugin::Session::State")".
17
18       When you write a session state plugin you should subclass this module
19       this reason only.
20

WRITING STATE PLUGINS

22       To write a session state plugin you usually need to extend two methods:
23
24       prepare_(action|cookies|whatever)
25           Set "sessionid" (accessor) at prepare time using data in the
26           request.
27
28           Note that this must happen before other "prepare_action" instances,
29           in order to get along with Catalyst::Plugin::Session. Overriding
30           "prepare_cookies" is probably the stablest approach.
31
32       finalize
33           Modify the response at to include the session ID if "sessionid" is
34           defined, using whatever scheme you use. For example, set a cookie,
35
36
37
38perl v5.34.0                      2021-07-22Catalyst::Plugin::Session::State(3)
Impressum