'Check all currently connected sessions (logged in and not) and
see if any are dead or idle.'

def validate_sessions(self):

    tcurr = time.time()
    reason = _('Idle    timeout    exceeded,    disconnecting.')
    for session in (session for session in self.values() if (session.logged_in and (_IDLE_TIMEOUT > 0) and ((tcurr - session.cmd_last) > _IDLE_TIMEOUT))):
        self.disconnect(session, reason=reason)
