---
title: "控制页面后退"
author: "kidd"
date: "2009-02-13T11:45:17Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2009-02-13T11:45:17Z"
id: 328062
url: "https://kidd.iteye.com/blog/328062"
---

<%response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-store");
response.setDateHeader("Expires",-1);%>

把上面的代码加在JSP页面上就可以了.
当用户操作过程中点击后退时,就相当于重新访问了前一个JSP页面.
(当然,这个并不算是一个很好的方法！仅供参考…… :wink: )