aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/security/SessionManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/security/SessionManager.php')
-rw-r--r--application/security/SessionManager.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/application/security/SessionManager.php b/application/security/SessionManager.php
index 994fcbe5..4ae99168 100644
--- a/application/security/SessionManager.php
+++ b/application/security/SessionManager.php
@@ -202,4 +202,14 @@ class SessionManager
202 { 202 {
203 return $this->session; 203 return $this->session;
204 } 204 }
205
206 /**
207 * @param mixed $default value which will be returned if the $key is undefined
208 *
209 * @return mixed Content stored in session
210 */
211 public function getSessionParameter(string $key, $default = null)
212 {
213 return $this->session[$key] ?? $default;
214 }
205} 215}