clear and logout

This commit is contained in:
Ryan
2025-02-21 21:02:29 -05:00
committed by GitHub
parent 3f6dda1412
commit efa490d37a

9
logout.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
session_start();
$_SESSION = []; // Clear session data
session_destroy(); // Destroy session
header('Content-Type: application/json');
echo json_encode(["success" => "Logged out"]);
exit;
?>