# "Page has expired" problem

**URL:** <https://www.ruby-forum.com/t/page-has-expired-problem/61629>\
**Category:** Rails\
**Created:** [May 25, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/page-has-expired-problem/61629 "2006-05-25T19:10:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pazu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pazu](https://www.ruby-forum.com/u/pazu)\
**Post date:** [May 25, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/page-has-expired-problem/61629/1 "2006-05-25T19:10:04Z")

</div>

Folks,

I’ve written a simple, multi-page Rails app which works fine except for  
one thing: often when my users click the browsers BACK button, they  
receive the “Warning: Page has Expired” message in IE, with the  
suggestion to hit the refresh button. If they do hit refresh, they are  
told that the information will be sent back to the page, and they have  
to hit “Retry” to proceed.

I have no idea where to begin looking for this problem. Any ideas? Is  
there a timeout parameter somewhere…?

Thanks,  
Marcus

---

<div class="post-metadata">

**Author:** ![pazu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pazu](https://www.ruby-forum.com/u/pazu)\
**Post date:** [May 25, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/page-has-expired-problem/61629/2 "2006-05-25T19:16:25Z")

</div>

This is normal if the previous page was the result of a submitted form.

On Thu, 2006-05-25 at 10:07 -0700, Marcus B. wrote:

> Is there a timeout parameter somewhereâ?¦?
> 
> Thanks,  
> Marcus
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Charlie B.  
Programmer  
Castle Branch Inc.

---

<div class="post-metadata">

**Author:** ![pazu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pazu](https://www.ruby-forum.com/u/pazu)\
**Post date:** [July 6, 2006, 3:36pm UTC](https://www.ruby-forum.com/t/page-has-expired-problem/61629/3 "2006-07-06T15:36:38Z")

</div>

On 7/6/06, ben [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> Im having the same problem with going back to form data, is there any  
> wayof fixing this?

This is what happens if you press the back key to return to a page  
created by a POST request.

One way around this is to create a back link that instead of actually  
going back instead recreates the previous page (with whatever was  
entered into the form before, prefilled).

Hope that helps,  
Mathias.

---

<div class="post-metadata">

**Author:** ![pazu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@pazu](https://www.ruby-forum.com/u/pazu)\
**Post date:** [July 6, 2006, 10:48am UTC](https://www.ruby-forum.com/t/page-has-expired-problem/61629/4 "2006-07-06T10:48:04Z")

</div>

Charlie B. wrote:

> This is normal if the previous page was the result of a submitted form.

Hi,

Im having the same problem with going back to form data, is there any  
wayof fixing this?

thanks
