summaryrefslogtreecommitdiff
path: root/app/Core/Session.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Session.php')
-rw-r--r--app/Core/Session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Core/Session.php b/app/Core/Session.php
index 6ce1bd40..5c55311a 100644
--- a/app/Core/Session.php
+++ b/app/Core/Session.php
@@ -15,7 +15,7 @@ class Session
*
* @var integer
*/
- const SESSION_LIFETIME = 86400; // 1 day
+ const SESSION_LIFETIME = 7200; // 2 hours
/**
* Open a session
@@ -35,7 +35,7 @@ class Session
self::SESSION_LIFETIME,
$base_path ?: '/',
null,
- isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on',
+ ! empty($_SERVER['HTTPS']),
true
);