public void removeAttribute(String name) {
    HttpSession session = getHttpSession();
    if (session != null) {
      session.removeAttribute(name);
    }
  }
Remove the attribute identified by the given name from the current session.

@param name  the attribute name
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariSessionManager.java