我专门用了一页来做注销,如下logout.jsp的程序段
<%
session.removeAttribute("user_name");
response.sendRedirect("index.jsp");
%>
只有这两行代码,当点击文字“注销”(是个连接,连接至logout.jsp)
remove后直接转向首页。
疑问——为什么当我点击后退时,仍然能访问我之前的页面呢?