为什么我退出的时候在线用户列表不能清空?
<%
Hashtable userlist = new Hashtable();

if (application.getAttribute("ausername") != null)
{
   userlist = (Hashtable)application.getAttribute("ausername");
}


userlist.put(username,username);
application.setAttribute("ausername",userlist);
Enumeration enum = userlist.elements();

while(enum.hasMoreElements())
{
   String list =(String)enum.nextElement();
%><div align="left">&nbsp;&nbsp;&nbsp;<img src="images/ao.gif"> <span class="style7"><%=list%></span></div><%
}
   out.println("<hr>");
   out.println("共"+userlist.size()+"人同时在线");
%>
然后通过点击按钮退出
下面是logout.jsp<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="java.util.*"%>
<%
String u =(String)session.getAttribute("username");
Hashtable temp = new Hashtable();
temp= (Hashtable)application.getAttribute("ausername"); temp.remove(u);
%>
<script language="JavaScript">
    alert("谢谢您的光临,可不要忘记我哦!");
    top.location = "index.jsp";
</script>可是行不通了。