Forum Moderators: phranque
I'm having a painful issue with IE.
I have a php page that contains a webform and an iframe. The iframe displays another php page which is in fact a file upload form.
When I upload an image a thumbnail is displayed.
Once all the form has been filled in I go to the preview page. But if I go back to make changes the iframe in IE says "Webpage has expired".
I'm not setting any headers in the PHP. But if I dump all header commands in the PHP (must be default commands?) I get:
array
0 => string 'X-Powered-By: PHP/5.2.4-0.dotdeb.0' (length=34)
1 => string 'P3P: policyref="/w3c/p3p.xml", CP="NOI DSP COR CURa ADMa DEVa TAIa OUR IND COM NAV INT CNT PRE"' (length=95)
2 => string 'Expires: Thu, 19 Nov 1981 08:52:00 GMT' (length=38)
3 => string 'Cache-Control: private, max-age=10800, pre-check=10800' (length=54)
4 => string 'Last-Modified: Tue, 17 Jun 2008 09:49:34 GMT' (length=44)
So it looks like our apache server is setting the page as expired already.
But if that causes a problem... wouldn't it display an error on all pages? What's so special about an iframe cache?
If Apache or PHP is setting that header, then it is because it has been configured to do so. Check your server config files, php.ini, the scripts themselves, and any auto-prepended headers to find the settings or code that outputs these headers.
Jim