<?php
session_start();

// Destroy session
session_destroy();

// Clear cookies
setcookie('user_id', '', time() - 3600, "/");
setcookie('user_email', '', time() - 3600, "/");

header('Content-Type: application/json');
echo json_encode([
    'success' => true,
    'message' => 'Logged out successfully'
]);

?>
