Catalyst::Plugin::Session::State(3pm)

Catalyst::Plugin::Session::State3pm

Base class for session state preservation plugins.

Usage

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

Overview

This class doesn't actually provide any functionality, but when the "Catalyst::Plugin::Session" module sets up it will check to see that "YourApp->isa("Catalyst::Plugin::Session::State")".

When you write a session state plugin you should subclass this module this reason only.

Writing state plugins

To write a session state plugin you usually need to extend two methods:

prepare_(action|cookies|whatever)

Set "sessionid" (accessor) at prepare time using data in the request.

Note that this must happen before other "prepare_action" instances, in order to get along with Catalyst::Plugin::Session. Overriding "prepare_cookies" is probably the stablest approach.

finalize

Modify the response at to include the session ID if "sessionid" is defined, using whatever scheme you use. For example, set a cookie.

Releases

10 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12–13

From libcatalyst-plugin-session-perl 0.43-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.