IE6: Back Button & Dynamic Pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

IE6: Back Button & Dynamic Pages

Post by dstefani »

Hello All,
I'm building a data mining app and I'm not generating any pages, it's all on the fly. The first search results come back as a list, with a small bit of information and each row links to a details page. Each page is dynamic, both the list and the details. But when you use the back button in IE6 it gives you the warning.
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.
Do you know of a way to avoid this message and just get the resubmit form data alert window?

Thanks,

- D
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

IE's fault... Try using this header in the start of your script:

Code: Select all

header('Cache-Control: private');
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

Post by dstefani »

Your are indeed a fine and upstanding member of the PHP community! ;-)
Your fix did the trick.

This forum is so cool!

Thanks,

- D
Post Reply