summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/authgui.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 889e3b8..a407887 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -225,7 +225,15 @@ if ($local_ip == false) {
}
}
}
-setcookie("cookie_test", time() + 3600);
+setcookie(
+ "cookie_test",
+ '',
+ time() + 3600,
+ '/',
+ NULL,
+ ($config['system']['webgui']['protocol'] == "https"),
+ true
+);
$have_cookies = isset($_COOKIE["cookie_test"]);
?>
OpenPOWER on IntegriCloud