From 8563df387f5132dcdc79ebeb38110437cd77d57b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 27 Nov 2024 09:26:10 -0700 Subject: [PATCH] Start the session in the header.php --- resources/header.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/resources/header.php b/resources/header.php index 90b63fd5e1..d044c9b18e 100644 --- a/resources/header.php +++ b/resources/header.php @@ -25,7 +25,18 @@ */ //includes files - require_once __DIR__ . "/require.php"; + require_once __DIR__ . "/require.php"; + +//start the session + ini_set("session.cookie_httponly", true); + if (!isset($_SESSION)) { session_start(); } + +//set the domains session + if (!isset($_SESSION['domains'])) { + $domain = new domains(); + $domain->session(); + $domain->set(); + } //if reloadxml then run the command if (permission_exists('dialplan_edit') && isset($_SESSION["reload_xml"])) {