<?php require_once __DIR__ . '/../auth.php'; session_destroy(); header('Content-Type: application/json'); echo json_encode(['ok' => true]);