CreateQuestion()) { // assign corresponding code to session variable // for checking against user entered value print $oSecurityImage->GetCode(); $_SESSION['code'] = $oSecurityImage->GetCode(); } else { echo 'Image GIF library is not installed.'; }; ?>