You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhky/web/clearsessions.jsp

17 lines
514 B

<%@ page import="java.util.Enumeration"%>
<%@ page language="java" pageEncoding="utf-8" %>
<%
String flag=request.getParameter("clear");
if (flag!=null && flag.equals("1"))
{
Enumeration enu = session.getAttributeNames();
while(enu.hasMoreElements()){
String s = (String)enu.nextElement();
if (!s.equals("login") && !s.equals("pwdtag") && !s.equals("versionOfJxc") && !s.equals("FblForEasy")&& !s.equals("Navigator") && !s.equals("Navigatortree") ){
session.removeAttribute(s);
}
}
}
%>