<?php
// logout.php

session_start();

// Unset all session variables
$_SESSION = [];

// Destroy the session
session_destroy();

// Redirect to login page (or homepage)
header("Location: login.php");
exit;
?>
