public static string Logout() { string json = ""; AdminCookie.SesionUser userExt = AdminCookie.GetUserFromCookie(); try { aidePlatformManagerFacade.UserLogout(); LogHelper2.SaveSuccessLog("[" + userExt.Username + "]退出成功", userExt.UserID, (int)LogOperationEnum.Logout, GameRequest.GetUserIP(), "登录模块"); json = JsonResultHelper.GetSuccessJson("退出成功"); } catch (Exception ex) { LogHelper2.SaveErrLog("[" + userExt.Username + "]退出失败", "", userExt.UserID, (int)LogOperationEnum.Login, GameRequest.GetUserIP(), "登录模块"); json = JsonResultHelper.GetErrorJson(ex.Message); } return(json); }
protected void Page_Load(object sender, EventArgs e) { aidePlatformManagerFacade.UserLogout(); }