コード例 #1
0
        /// <summary>
        /// 插入用户
        /// </summary>
        /// <param name="username">用户名</param>
        public void InsertOnlineUser(string username)
        {
            UserOnlineList.Remove(Common.GetSessionID);
            OnlineUser <string> us = new OnlineUser <string>();

            us.U_Guid    = Common.GetSessionID;
            us.U_Name    = username;
            us.U_Type    = true;
            us.U_LastUrl = Common.GetScriptUrl;
            UserOnlineList.InsertUser(us.U_Guid, us);
        }
コード例 #2
0
 /// <summary>
 /// 删除在线用户
 /// </summary>
 /// <param name="username">用户名</param>
 /// <param name="sessionid">用户sessionid</param>
 public void OnlineRemove(string username, string sessionid)
 {
     UserOnlineList.Remove(sessionid);
 }