<?php
declare(strict_types=1);

require_once __DIR__ . '/bootstrap.php';

$cfg = eaq_load_config();
$baseUrl = $cfg['base_url'] ?? eaq_base_url();

if (session_status() !== PHP_SESSION_ACTIVE) session_start();
$_SESSION = [];
session_destroy();

eaq_redirect($baseUrl . '/app/login.php');

