<?php
session_start();
session_destroy();
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Logging out...</title>
</head>
<body>
    <script>
        // Clear localStorage
        localStorage.removeItem('userLoggedIn');
        localStorage.removeItem('userName');
        localStorage.removeItem('userRole');
        
        // Redirect to home page so auth buttons appear
        window.location.href = '../index.php';
    </script>
</body>
</html>
