<?php
// /elms/lecturer/logout.php
declare(strict_types=1);

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

unset($_SESSION['elms_user_id']);
unset($_SESSION['elms_user_name']);
unset($_SESSION['elms_user_email']);
unset($_SESSION['elms_user_role']);

unset($_SESSION['user_id']);
unset($_SESSION['user_name']);
unset($_SESSION['user_email']);
unset($_SESSION['user_role']);

unset($_SESSION['lecturer_id']);
unset($_SESSION['lecturer_name']);
unset($_SESSION['lecturer_email']);
unset($_SESSION['lecturer_role']);

header("Location: /elms/lecturer/login.php");
exit;