var sessions = GlideSessions.get().getLoggedInSessionList(); var it = sessions.iterator(); while(it.hasNext()) { var session = it.next(); if (session.getUser() == gs.getUserName()) { var httpSession = session.getHS(); httpSession.setAttribute(“locked_out”, “true”); } }