<?php
session_start();
session_unset();
session_destroy();
?>
<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Logout</title>
  <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</head>
<body>
<script>
document.addEventListener("DOMContentLoaded", function() {
    Swal.fire({
        icon: 'info',
        title: 'Logout Berhasil',
        text: 'Anda telah keluar dari sistem.',
        timer: 1500,
        showConfirmButton: false
    }).then(() => {
        window.location = 'login.php';
    });
});
</script>
</body>
</html>
