指定されたセッション変数が存在するかどうかを示す Boolean を戻します。
セッション変数は、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 }