From 30a882dd6ba3294020812369338084c3558b44ca Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 23 Sep 2025 16:13:36 -0600 Subject: [PATCH] Remove old session commands Session is handled in resources/require.php --- index.php | 4 ---- resources/captcha/config.php | 1 - resources/header.php | 6 ------ 3 files changed, 11 deletions(-) diff --git a/index.php b/index.php index 80bb3b5a07..9cdcfc5ef9 100644 --- a/index.php +++ b/index.php @@ -24,10 +24,6 @@ Mark J. Crane */ -//start the session - ini_set("session.cookie_httponly", True); - if (!isset($_SESSION)) { session_start(); } - //includes files require_once __DIR__ . "/resources/require.php"; diff --git a/resources/captcha/config.php b/resources/captcha/config.php index dc36b802a0..eaf868213e 100644 --- a/resources/captcha/config.php +++ b/resources/captcha/config.php @@ -63,7 +63,6 @@ $pathtofonts = "/captcha/fonts/"; //path from the root of the website //add this to the top of the page where the form is submitted to //--- begin captcha verification --------------------- - //ini_set("session.cookie_httponly", True); session_start(); //make sure sessions are started if (strtolower($_SESSION["captcha"]) != strtolower($_REQUEST["captcha"]) || empty($_SESSION["captcha"])) { echo " Sorry!\n"; diff --git a/resources/header.php b/resources/header.php index eeec6b8168..0a13e37ebb 100644 --- a/resources/header.php +++ b/resources/header.php @@ -27,12 +27,6 @@ //includes files require_once __DIR__ . "/require.php"; -//start the session - if (!isset($_SESSION)) { - ini_set("session.cookie_httponly", true); - session_start(); - } - //connect to the database if not initialized $database = database::new();