public string LogOutAllExceptThisConnection() { try { var user = CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID); var userName = user.DisplayUserName(false); var loginEventFromCookie = GetLoginEventIdFromCookie(); DbLoginEventsManager.LogOutAllActiveConnectionsExceptThis(loginEventFromCookie, user.Tenant, user.ID); MessageService.Send(Request, MessageAction.UserLogoutActiveConnections, userName); return(userName); } catch (Exception ex) { Log.Error(ex); return(null); } }