<?php
session_start(); // Start session

// Clear all session data
$_SESSION = [];          // Unset all session variables
session_unset();         // Remove session variables
session_destroy();       // Destroy the session

// Redirect to login page
header("Location: /SEAT/index.php"); // or login.php if separate
exit();