如何清空Session for (Object name : Collections.list(session.getAttributeNames())) { session.removeAttribute((String)name);}