Restituisce un valore Bool che indica se esiste la variabile Session specificata.
Le variabili Session permangono fino all'eliminazione dell'oggetto Session. Per ottenere o impostare le variabili, utilizzare il metodo NameValue.
VBScript
session.HasValue(name)
Perl
$session->HasValue(name);
VBScript
set sessionObj = GetSession
' Test for existence of the web session variable
if sessionObj.HasValue ("_CQ_WEB_SESSION") then
Value = sessionObj.NameValue("_CQ_WEB_SESSION")
' Either exit or do something else
end if
Perl
# Get a Rational ClearQuest session
$sessionObj = $entity->GetSession();
# Test for existence of the web session variable
if ($sessionObj->HasValue("_CQ_WEB_SESSION")) {
$Value = $sessionObj->GetNameValue("_CQ_WEB_SESSION");
# Either exit or do something else
}