def __Logout ( si ) : try : if si : content = si . RetrieveContent ( ) content . sessionManager . Logout ( ) except Exception as e : pass
python windows session logout check
Disconnect ( logout ) service instance
def __Logout(si):
   """
   Disconnect (logout) service instance
   @param si: Service instance (returned from Connect)
   """
   try:
      if si:
         content = si.RetrieveContent()
         content.sessionManager.Logout()
   except Exception as e:
      pass