지정된 세션 변수가 존재하는지 여부를 나타내는 부울을 리턴합니다.
세션 변수는 Session 오브젝트가 삭제될 때까지 유지됩니다. 변수를 가져오거나 설정하려면 NameValue 메소드를 사용합니다.
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 }