Secure Global Desktop Administration Guide > Applets > logout method

logout method

Syntax

int 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

<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