From 7a9187900552038d0a6f8942493f2728d4220264 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Wed, 4 Nov 2020 22:52:05 +0100 Subject: added s3d_close helper --- lib/JWebmail/Plugin/ServerSideSessionData.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/JWebmail') 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 -- cgit v1.2.3