time() - 3600, 'path' => $p['path'], 'domain' => $p['domain'] ?: '', 'secure' => $p['secure'], 'httponly' => true, 'samesite' => 'Lax', ]); } session_destroy(); header('Location: /'); exit;