469,336 Members | 5,570 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

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

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
4 15914
devsusen
136 100+
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
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
3,237 Expert 2GB
Two solutions:
a) hit your refresh button.
b) code the search to use $_GET rather than $_POST
Feb 13 '07 #4
jojet
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.

Similar topics

2 posts views Thread by Jarkko Kähkönen | last post: by
2 posts views Thread by James | last post: by
2 posts views Thread by bri | last post: by
3 posts views Thread by =?Utf-8?B?cHJhZGVlcF9UUA==?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.