jsp 清除session,回到登录页面

上一篇 / 下一篇  2012-06-12 09:34:26 / 个人分类:web

<%   

 while(session.getAttributeNames().hasMoreElements()){
      String sessionName=(String)session.getAttributeNames().nextElement();
      session.removeAttribute(sessionName);
    }

%>

<script. type="text/javascript">
   window.close();
   window.location.href="index.htm"
</script>


TAG: JSP jsp Session session

 

评分:0

我来说两句

Open Toolbar