public SessionInfo[] GetActiveSessions(SessionCriteria criteria)
        {
            using (var proxy = new SessionProxy())
            {
                if (criteria == null)
                {
                    return proxy.GetActiveSessions();
                }

                return proxy.GetActiveSessions(criteria.UserName, criteria.IPAddress, criteria.HostName,
            criteria.LoginTimeFrom, criteria.LoginTimeTill, criteria.LastActivityTimeFrom, criteria.LastActivityTimeTill);
            }
        }