Secure Global Desktop Administration Guide > Applets > logout method
int logout()
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.
<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.
Copyright © 1997-2005 Sun Microsystems, Inc. All rights reserved.