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 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 }