<?php
require_once __DIR__ . '/config/auth.php';

if (is_logged_in()) {
    log_activity($conn, 'Logout', 'User logged out.');
}

session_unset();
session_destroy();

header('Location: login.php');
exit;
