Plack::Session::Cleanup(3pm)

Plack::Session::Cleanup3pm

Run code when the environment is destroyed

Usage

  $env->{'run_at_cleanup'} = Plack::Session::Cleanup->new(
      sub {
          # ...
      }
  );

Overview

This provides a way for Plack::Middleware::Session to run code when the environment is cleaned up.

Methods

new ( $coderef )

Executes the given code reference when the object is "DESTROY"'d. Care should be taken that the given code reference does not close over $env, creating a cycle and preventing the $env from being destroyed.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libplack-middleware-session-perl 0.34-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.