@depends(_HAS_WIN32TS_DEPENDENCIES)
def get_session(session_id):
    ret = dict()
    sessions = list_sessions()
    session = [item for item in sessions if item['session_id'] == session_id]

    if session:
        ret = session[0]

    if not ret:
        _LOG.warning('No session found for id: %s', session_id)
    return ret
Get information about a session.
dataset/ETHPy150Open saltstack/salt/salt/modules/rdp.py/get_session