Skip past navigation linksSecure Global Desktop 4.31 Administration Guide > Applets > logout method

logout method

Syntax

Skip past command syntax or program codeint logout()

Description

The logout method allows users to log out of Secure Global Desktop. It can be used with the following Secure Global Desktop applets:

The logout method returns 0 if the user is successfully logged out; otherwise it returns the relevant error code.

Examples

Skip past command syntax or program code<SCRIPT Language="JavaScript">
function logout()
{
   status = document.applets[0].logout();

   if (status != 0)
      alert ( "Failed to log out: error " + status );
}
</SCRIPT>

Defines a function that logs a user out, or displays a dialog containing the error code.

Note that the applet must be present in the same web page as the logout method.

Related topics