1Plack::Session::CleanupU(s3eprm)Contributed Perl DocumenPtlaatciko:n:Session::Cleanup(3pm)
2
3
4

NAME

6       Plack::Session::Cleanup - Run code when the environment is destroyed
7

SYNOPSIS

9         $env->{'run_at_cleanup'} = Plack::Session::Cleanup->new(
10             sub {
11                 # ...
12             }
13         );
14

DESCRIPTION

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

METHODS

20       new ( $coderef )
21           Executes the given code reference when the object is "DESTROY"'d.
22           Care should be taken that the given code reference does not close
23           over $env, creating a cycle and preventing the $env from being
24           destroyed.
25
26
27
28perl v5.32.0                      2020-07-28      Plack::Session::Cleanup(3pm)
Impressum