diff options
Diffstat (limited to 'application/security')
-rw-r--r-- | application/security/SessionManager.php | 10 |
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 | } |