Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1092
  • Last Modified:

My computer at work always says Page Expired

Hi

In my personal laptop, how is it that when i test my Form page and process page/message comes out, when i click the back key the data is still in the form

My computer at work always says Page Expired when i click the BACK icon in IE after i process a form.

I want my computer at work to perform, just like my laptop does.

Thanks
0
mdbbound
Asked:
mdbbound
4 Solutions
 
jay252Commented:
Are you using the same version of IE on your laptop as well? The warning when you hit the back button in IE can be caused by a page posting to itself. This is a security feature of the IE browser to prevent forms from reposting by accident. You can change the method of the form to get rather than post as a workaround depending on the amount and type of data your form is posting. You could also have your form post to a seperate page then redirect to a seperate page using the <cflocation> tag.
0
 
jay252Commented:
Take a look at http://www.benorama.com/coldfusion/patterns/part2.htm 

This discribes how to organize your pages which should solve the problem with your form.
0
 
pinaldaveCommented:
Hi mdbbound,

I will suggest that you do not rely on this behaviour of IE. This is not reliable. I will suggest instead of click the back button create a back button in ColdFusion.
whenever you click on back button or back link, it should load your page again with the data you have previously inserted either from database or from the form variable. Also one of the previous q, you have asked how to preserve the code in this case so I am not repeating that answer.
Well, let us know if you need to know anything more. ColdFusion is what I do all the time.

Regards,
---Pinal
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
anandkpCommented:
Ur right >> always says Page Expired when i click the BACK icon in IE after i process a form.
but thats when the form is processed & ur trying to reach that page [as mentioned by jav252 - if u have a intermediate page doing the processing - the back button wldnt be doing what its doing for u now]

if the previous page was a result of a post action - then u wld get the page expired warning.
but if u have directly gone to that page via a url & then if u use the back button - the form wld definately show the data u filled in [except for certain fields of type password]
In case u think u dont want this to happen as well - i suggest u DONT have this page cached - so everytime its a new copy from the server & it wld be blank. [thou i dont see whats the problem if the form does show the data u just filled - its suppose to do that - so u dont have to type all over again]

K'Rgds
Anand
0
 
mdbboundAuthor Commented:
Thanks all

It's always good to know the reasons on why systems behave the way they do.

I will split the points.
0
 
pinaldaveCommented:
Hello Mdbbound,
It is always fun to participate and share knowledge.
Regards,
---Pinal
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now