aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/SessionManager.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-02-16 22:21:59 +0100
committerVirtualTam <virtualtam@flibidi.net>2018-05-29 22:53:54 +0200
commitdb45a36a53dbd722e5e891827e49d9e7651f2a5e (patch)
treefab831952e00fcdda5482c6e2318ff3f63b87e92 /application/SessionManager.php
parent88110550b89617dcda16441212599b8a40faa20c (diff)
downloadShaarli-db45a36a53dbd722e5e891827e49d9e7651f2a5e.tar.gz
Shaarli-db45a36a53dbd722e5e891827e49d9e7651f2a5e.tar.zst
Shaarli-db45a36a53dbd722e5e891827e49d9e7651f2a5e.zip
Refactor SessionManager::$INACTIVITY_TIMEOUT
Changed: - move INACTIVITY_TIMEOUT to SessionManager - inject a dependency to a SessionManager instance in: - fillSessionInfo() - setup_login_state() - check_auth() - cleanup related code and comments Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application/SessionManager.php')
-rw-r--r--application/SessionManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/SessionManager.php b/application/SessionManager.php
index 71f0b38d..704f8504 100644
--- a/application/SessionManager.php
+++ b/application/SessionManager.php
@@ -6,6 +6,10 @@ namespace Shaarli;
6 */ 6 */
7class SessionManager 7class SessionManager
8{ 8{
9 /** Session expiration timeout, in seconds */
10 public static $INACTIVITY_TIMEOUT = 3600;
11
12 /** Local reference to the global $_SESSION array */
9 protected $session = []; 13 protected $session = [];
10 14
11 /** 15 /**