'Called by server to force a disconnect by sessid.
Args:
session (portalsession): Session to disconnect.
reason (str, optional): Motivation for disconnect.'

def server_disconnect(self, session, reason=''):

    if session:
        session.disconnect(reason)
        if (session.sessid in self):
            del self[session.sessid]
        del session
