Returns a Bool indicating whether the specified session variable exists.
Session variables persist until the Session object is deleted. To get or set variables, use the NameValue method.
VBScript
set sessionObj = GetSession ' Test de présence de la variable de session Web if sessionObj.HasValue ("_CQ_WEB_SESSION") then Value = sessionObj.NameValue("_CQ_WEB_SESSION") ' Quitter ou effectuer une autre action end if
Perl
# Get a Rational ClearQuest session $sessionObj = $entity->GetSession(); # Test de présence de la variable de session Web if ($sessionObj->HasValue("_CQ_WEB_SESSION")) { $Value = $sessionObj->GetNameValue("_CQ_WEB_SESSION"); # Quitter ou effectuer une autre action }