OpenWGA 7.6 - TMLScript reference

Auth
Method :

logout()

On object Auth
Usage Logs a user out of a domain
Description This method will clear stored login information for the given domain on the user session.

As the logout will not be effective on databases that already have been opened with the now dropped login data in the current request it is recommended to execute this method in a WebTML action and then redirect the current request to another request, where the logout will be effective, using method WGA.redirectTo().

For backward compatibility there still is a method "logout()" available on TMLContext whose use is discouraged since OpenWGA 5.3.

Allowed in script types
  • WebTML pages and normal WebTML actions