'Disconnect all sessions, informing the Server.'

def disconnect_all(self):

    def _callback(result, sessionhandler):
        sessionhandler._disconnect_all = True
        for session in sessionhandler.values():
            session.disconnect()
        del sessionhandler._disconnect_all
    self.portal.amp_protocol.send_AdminPortal2Server(DUMMYSESSION, operation=PDISCONNALL).addCallback(_callback, self)
