summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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