<?php
// school_admission/public/logout.php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
require_once __DIR__ . '/../includes/functions.php'; // For redirect()

session_unset();
session_destroy();
redirect('login.php'); // Redirect to the direct login file
?>