<?php
session_start(); // Start the session

// Unset all session variables
$_SESSION = [];

// Destroy the session
session_destroy();

// Redirect to login page with flag for toast
header("Location: ../../login.php?logout=1");
exit();
?>
