summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Plugin/ServerSideSessionData.pm
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2020-11-04 22:52:05 +0100
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2020-11-04 22:52:05 +0100
commit7a9187900552038d0a6f8942493f2728d4220264 (patch)
tree559abf2e720bf9266c68d920fb198f01121ac188 /lib/JWebmail/Plugin/ServerSideSessionData.pm
parent13c68ce71390463f200b02280bf5e064224eb58c (diff)
added s3d_close helper
Diffstat (limited to 'lib/JWebmail/Plugin/ServerSideSessionData.pm')
-rw-r--r--lib/JWebmail/Plugin/ServerSideSessionData.pm7
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