<?php
/**
 * Logout Handler
 * LandSales Pro - Securely terminates user session
 */
define('APP_RUNNING', true);
require_once 'db_connect.php';
require_once 'includes/auth.php';

initSecureSession();

// Perform secure logout
logoutUser();

// Redirect to login page with success message
header('Location: login.php?success=logout');
exit;
