File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Warning: Page has Expired in Jsp page after clicking back button.

 
lirin oza
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i have a back button problem in application.

Actually, i know, this is a IE's behaviour for post type request and i resolved this error for most of the places where my request get submited through form submit. but still i am facing a problem in some of places where i am using hyper link for forwarding a request from one jsp page to another jsp page. now after i forward this if i press back it will give me this error.

can anybody help me for this.how can i remove this?

In terms of other alternative if anybody have idea that we can invalidate session on back button click event.that is also a good alternative.because i don't want user to go back through back button.

response.setHeader("Pragma", "private");
response.setHeader("Cache-Control", "public");
response.setDateHeader("Expires", 1L);

through above code i successfully remove error in request which is getting submitted. but still i am facing a problem in request which is not submit a form but rather just forwarding to the another page and from that page if i am pressing back it invoke "Warning: Page has Expired".


can anybody help me?

thanks in advance.
lirin.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic