Web で使用可能な機能に合わせて スキーマを調整していない場合、この情報によって適切な処置を 取ることができます。
例えば、メッセージ ボックスまたは新規ウィンドウを作成する関数の中に Web セッションを検出した場合は、Web 環境用に変更したコードを呼び出すか、関数を終了することができます。 Web セッションの検出には、以下のコーディング例を使用することができます。
dim currDBSession ' Current Db session
set currDBSession = GetSession
' Test for existence of the web session variable.
if currDBSession.HasValue ("_CQ_WEB_SESSION") then
' Either exit or do something else
end if
my $currDBSession; # Current Db session
$currDBSession = $entity->GetSession();
# Test for existence of the web session variable
if ( $currDBSession->HasValue ("_CQ_WEB_SESSION") {
# Either exit or do something else
}