public baseCC() { CurrentUId = 0; CurrentUName = "admin"; CurrentTureName = "管理员"; //检查用户登录状态 try { HttpCookie co1 = System.Web.HttpContext.Current.Request.Cookies[CFun.GetAppStr("LoginCookieName")]; CurrentUId = Convert.ToInt32(co1["i"]); CurrentUName = co1["n"]; CurrentTureName = System.Web.HttpUtility.UrlDecode(co1["t"]); CurrentCheckCode = CFun.ParseInt(co1["c"]); CurrentRoleId = CFun.DESDecrypt(co1["r"], CFun.GetAppStr("DESKey")); CurrentRoleId = CurrentRoleId == "" ? "-1" : CurrentRoleId; CurrentRoleId = ("," + CurrentRoleId + ",").IndexOf(",0,") >= 0 ? "" : CurrentRoleId; CurrentUPost = Convert.ToInt32(CFun.DESDecrypt(co1["g"], CFun.GetAppStr("DESKey"))); //处理踢人下线 checkUserAvailable(); } catch { System.Web.HttpContext.Current.Response.Redirect(url); return; } if (CurrentUId <= 0) { System.Web.HttpContext.Current.Response.Redirect(url); return; } }