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.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/application/security/SessionManager.php b/application/security/SessionManager.php
index 0ac17d9a..82771c24 100644
--- a/application/security/SessionManager.php
+++ b/application/security/SessionManager.php
@@ -31,16 +31,21 @@ class SessionManager
31 /** @var bool Whether the user should stay signed in (LONG_TIMEOUT) */ 31 /** @var bool Whether the user should stay signed in (LONG_TIMEOUT) */
32 protected $staySignedIn = false; 32 protected $staySignedIn = false;
33 33
34 /** @var string */
35 protected $savePath;
36
34 /** 37 /**
35 * Constructor 38 * Constructor
36 * 39 *
37 * @param array $session The $_SESSION array (reference) 40 * @param array $session The $_SESSION array (reference)
38 * @param ConfigManager $conf ConfigManager instance 41 * @param ConfigManager $conf ConfigManager instance
42 * @param string $savePath Session save path returned by builtin function session_save_path()
39 */ 43 */
40 public function __construct(& $session, $conf) 44 public function __construct(&$session, $conf, string $savePath)
41 { 45 {
42 $this->session = &$session; 46 $this->session = &$session;
43 $this->conf = $conf; 47 $this->conf = $conf;
48 $this->savePath = $savePath;
44 } 49 }
45 50
46 /** 51 /**
@@ -249,4 +254,9 @@ class SessionManager
249 254
250 return $this; 255 return $this;
251 } 256 }
257
258 public function getSavePath(): string
259 {
260 return $this->savePath;
261 }
252} 262}