adminlogout.jsp 595 B

12345678910111213141516171819
  1. <%@ page contentType="text/html; charset=gb2312" %>
  2. <%@page session="true"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <%
  8. request.getSession().setAttribute("admin",null);
  9. request.getSession().setAttribute("userType",null);
  10. request.getSession().invalidate();
  11. %>
  12. <script>
  13. var win=window;
  14. while(win.parent!=window.top)
  15. {
  16. win=win.parent;
  17. }
  18. win.parent.location.href = "<%=path%>/admin/login.jsp";
  19. </script>