update to use single html with dynamic div
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
session_destroy();
|
||||
setcookie('loggedIn', '', time() - 3600, '/'); // Clear the cookie
|
||||
echo json_encode(['success' => true, 'message' => 'Logged out successfully.']);
|
||||
exit();
|
||||
?>
|
||||
Reference in New Issue
Block a user