Remove old session commands

Session is handled in resources/require.php
This commit is contained in:
FusionPBX
2025-09-23 15:58:15 -06:00
committed by GitHub
parent b3b91e37c6
commit 7528ea9afc
3 changed files with 0 additions and 11 deletions

View File

@@ -24,10 +24,6 @@
Mark J. Crane <markjcrane@fusionpbx.com>
*/
//start the session
ini_set("session.cookie_httponly", True);
if (!isset($_SESSION)) { session_start(); }
//includes files
require_once __DIR__ . "/resources/require.php";

View File

@@ -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 " <span class=\"h2\">Sorry!</span>\n";

View File

@@ -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();