summaryrefslogtreecommitdiff
path: root/app/Core/Session
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Session')
-rw-r--r--app/Core/Session/SessionStorage.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Core/Session/SessionStorage.php b/app/Core/Session/SessionStorage.php
index 11230793..f55a7ee3 100644
--- a/app/Core/Session/SessionStorage.php
+++ b/app/Core/Session/SessionStorage.php
@@ -62,6 +62,21 @@ class SessionStorage
}
/**
+ * Flush session data
+ *
+ * @access public
+ */
+ public function flush()
+ {
+ $session = get_object_vars($this);
+ unset($session['storage']);
+
+ foreach (array_keys($session) as $property) {
+ unset($this->$property);
+ }
+ }
+
+ /**
* Copy class properties to external storage
*
* @access public