summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/session.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/session.php')
-rw-r--r--apps/encryption/lib/session.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/encryption/lib/session.php b/apps/encryption/lib/session.php
index e049a8fe403..8da11e522ce 100644
--- a/apps/encryption/lib/session.php
+++ b/apps/encryption/lib/session.php
@@ -100,4 +100,15 @@ class Session {
$this->session->set('privateKey', $key);
}
+
+ /**
+ * remove keys from session
+ */
+ public function clear() {
+ $this->session->remove('publicSharePrivateKey');
+ $this->session->remove('privateKey');
+ $this->session->remove('encryptionInitialized');
+
+ }
+
} \ No newline at end of file