<?php
// Include header (which includes all dependencies)
include 'includes/header.php';

// Use SessionManager to properly destroy session
SessionManager::destroy();

// Clear any output buffers before redirect
while (ob_get_level()) {
    ob_end_clean();
}

// Redirect to login page
redirectTo('login');
?>
