HttpSession session = request.getSession();
Enumeration attributeNames = session.getAttributeNames();
while(attributeNames.hasMoreElements()){
String attrName = attributeNames.nextElement().toString();
session.setAttribute(attrName, null);
session.removeAttribute(attrName);
}
session在用户退出时候的清空问题
最新推荐文章于 2021-10-08 16:25:18 发布