Broke up the check_login.php require into several files seperated by function and then required them in the check_login

This commit is contained in:
johnnyq
2025-08-06 17:16:30 -04:00
parent c8984d1bc9
commit 44fdb6c24f
8 changed files with 108 additions and 115 deletions

11
includes/session_init.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
if (!isset($_SESSION)) {
// HTTP Only cookies
ini_set("session.cookie_httponly", true);
if ($config_https_only) {
// Tell client to only send cookie(s) over HTTPS
ini_set("session.cookie_secure", true);
}
session_start();
}