summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc18
1 files changed, 8 insertions, 10 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index b0051dd..a63ce45 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1342,16 +1342,14 @@ function session_auth() {
global $HTTP_SERVER_VARS, $config, $_SESSION, $page;
// Handle HTTPS httponly and secure flags
- if($config['system']['webgui']['protocol'] == "https") {
- $currentCookieParams = session_get_cookie_params();
- session_set_cookie_params(
- $currentCookieParams["lifetime"],
- $currentCookieParams["path"],
- NULL,
- true,
- true
- );
- }
+ $currentCookieParams = session_get_cookie_params();
+ session_set_cookie_params(
+ $currentCookieParams["lifetime"],
+ $currentCookieParams["path"],
+ NULL,
+ ($config['system']['webgui']['protocol'] == "https"),
+ true
+ );
if (!session_id())
session_start();
OpenPOWER on IntegriCloud