By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

Web page expired message display when click on IE7's Back button

P: 2
Hi,

I have one problem regarding search & search results page in IE & Firefox.
A code in both pages written in Php & database in MySQL

Problem :

When i selected one or more checkbox & dropdown items on search page & click on GO button then search result page open. & when i click on browser's BACK button then in IE "Web Page Expired" message dispayed & in firefox the search page dispaly.

also i want when i come back to previous page the previously selected itmes stay as it is. ( selected items shoud be selected when i come back).

Pls. help me.

Thanks
Sarvesh
php dev.
Feb 13 '07 #1
Share this Question
Share on Google+
4 Replies


100+
P: 136
Hi,

When i selected one or more checkbox & dropdown items on search page & click on GO button then search result page open. & when i click on browser's BACK button then in IE "Web Page Expired" message dispayed & in firefox the search page dispaly.
Are you using any php script while generating the search page? I mean if your search page is a .php file then IE normally expire the session for the page. If its a normal HTML page then you shouldn't have this problem.

Susen
Feb 13 '07 #2

P: 2
hi,

I have a search page with some checkboxes & dropdown lists.

& used only php coding with html.
But when i came back by clicking browser's back button from search results page to search page :

1) IE shows "web page expired" message & again cliking on back button then display search page with previously selected checkboxes r unchecked.

2) In firefox automatically come back on search page. but selected checkboxes shows unchecked.

Pls. send javascript code or any php code for handaling browser problem & select problem.

Thanks,
Sarvesh
Feb 13 '07 #3

Motoma
Expert 2.5K+
P: 3,235
Two solutions:
a) hit your refresh button.
b) code the search to use $_GET rather than $_POST
Feb 13 '07 #4

P: 1
Another option is to emit headers from PHP which allows IE etc to cache the search results page for a little while

e.g.

header('Pragma: ' . 'public');
header("Cache-Control: public");
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+(60*10)) . ' GMT'

I had the "page expired" problem and this allows me to back button back to the PHP search results page.

Performing another search gives you fresh results to this doesn't clog up your cache or anything.

Joel
Nov 30 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.