posted 20 years ago
Before sending the data to the browser, write the following statements,
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
This also helps in case, when user should not be able to see previous pages by clicking the Back button in the browser. (When very sensitive information is being displayed and someone else comes back tomachine and tries to see what data was entered)