diff --git a/includes/functions.php b/includes/functions.php index ddc5ee7..7235828 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -6,6 +6,10 @@ require_once __DIR__ . '/../config/config.php'; require_once __DIR__ . '/db.php'; +if (session_status() === PHP_SESSION_NONE) { + session_start(); +} + /** * Generate a unique ID with prefix */