<?php

declare(strict_types=1);

require DENTAL_ROOT . '/app/bootstrap.php';
unset($_SESSION['patient_user'], $_SESSION['portal_patient_id'], $_SESSION['patient_last_activity']);
if (session_status() === PHP_SESSION_ACTIVE && !headers_sent()) {
    session_regenerate_id(true);
}
header('Location: ' . dental_clean_url('patient-login.php?signed_out=1'), true, 303);
exit;
