currentSession

The currentSession system variable references the current Internet session, to enable you to return the current session when you have created a subclass of the WebSession class.

The code fragment in the following example shows the use of the currentSession system variable.

// Show Exit and File menu options only if not running on the Web
if currentSession <> null then
    menuFile.visible := false;
    miExit.visible   := false;
endif;

The currentSession system variable is set to null if there is no current Web session.