code: public void logout( boolean invalidateSessions )
      {
          LoginHandler lh = Handlers.get( getServletContext() ).getLoginHandler();
          lh.logout( getHandlerContext(), invalidateSessions );
      }
docs: Log out the current user.  Goes through a custom {@link LoginHandler}, if one has been configured in
  beehive-netui-config.xml.
  
  @param invalidateSessions if true, the session is invalidated (on all single-signon webapps);
  otherwise the session and its data are left intact (except for authentication
  information used internally by the server).  To invalidate the session in only the
  current webapp, set this parameter to <code>false</code> and call
  {@link FlowController#getSession}.invalidate().