<?php

declare(strict_types=1);

require_once __DIR__ . '/config.php';

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    Security::requireCsrf();
}

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