This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes Warning: Page has Expired  in Jsp page after clicking back button. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Warning: Page has Expired  in Jsp page after clicking back button." Watch "Warning: Page has Expired  in Jsp page after clicking back button." New topic
Author

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

lirin oza
Greenhorn

Joined: Oct 22, 2002
Posts: 7
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Warning: Page has Expired in Jsp page after clicking back button.