diff options
author | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2020-11-04 22:52:05 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2020-11-04 22:52:05 +0100 |
commit | 7a9187900552038d0a6f8942493f2728d4220264 (patch) | |
tree | 559abf2e720bf9266c68d920fb198f01121ac188 | |
parent | 13c68ce71390463f200b02280bf5e064224eb58c (diff) |
added s3d_close helper
-rw-r--r-- | lib/JWebmail/Plugin/ServerSideSessionData.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/JWebmail/Plugin/ServerSideSessionData.pm b/lib/JWebmail/Plugin/ServerSideSessionData.pm index e86a248..274594f 100644 --- a/lib/JWebmail/Plugin/ServerSideSessionData.pm +++ b/lib/JWebmail/Plugin/ServerSideSessionData.pm @@ -147,6 +147,7 @@ sub register { $self->cleanup_files; $app->helper( s3d => sub { $self->s3d(@_) } ); + $app->helper( s3d_close => sub { delete shift->session->{S_KEY()} } ); } @@ -203,4 +204,10 @@ Stores and retrieves values. $c->s3d('data'); $c->s3d->{data}; +=head2 s3d_close + +Session is closed. You will not have access to it any more. + + $c->s3d_close; + =cut |