示例#1
0
        private long GenerateSid(int userId)
        {
            long sid = -1;

            if (!_sessionIdHandler.ContainsUserId(userId))
            {
                sid = _security.GenerateNewSessionId();
                _sessionIdHandler.AddSid(userId, sid);
            }
            return(sid);
        }