JohnCMS 4.4.0, файл index.php в корне, строчки:
if (isset($_SESSION['ref'])) unset($_SESSION['ref']);