A: When the browser looks the page in the cache and if the page is not
available there, you may be getting "Warning: Page has Expired" error.
This usually happens when the page uses session as PHP's default
session.cache_limiter setting is "nocache"--which will send nocache
HTTP header to the browser.
So, the workaround is to forcibly send the HTTP headers so as to force
the browser to cache the page.
If using session, add session_cache_limiter('private,
must-revalidate');
Otherwise, add header('private, must-revalidate');
This may solve the issue.
Refer:
http://www.php.net/sesssion_cache_limiter
http://www.php.net/header
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site
might be experiencing technical difficulties, or you may need to adjust
your browser settings.
Sniff the header and post here. Just curious to look at the header.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
I have only had experience of this as a user on a web-site. IE 6.0 gave me
this "error messages" all the time. After I changed my browser to FireFox, the
"error" was gone.
--
Jørn Dahl-Stamnes
Homepage: http://www.dahl-stamnes.net/dahls/
[about IE's 'Warning: Page has Expired' nonsense]
> I have only had experience of this as a user on a web-site.
For no fault of the Web site author, let it be said.
> IE 6.0 gave me this "error messages" all the time. After I changed
> my browser to FireFox, the "error" was gone.
Because the warning is a bug, which real browsers, like your
Firefox, are free of.
You bring up a good point, one worth noting in the FAQ, I
daresay. That is, as far as I know, the workaround exists
solely to counter IE's misbehaviour. I'd be saddened to learn
of other browsers with this bug.
The workaround affects everyone though. Before, the provider
asked for the page not to be cached, but now, just because of
IE, he's asking for it to be cached. That's wrong.
--
Jock
Q: How do I preserve form data after submitting but returning using
back button?
A: You can instruct the browser to cache the page by sending proper
HTTP headers. But, note that the browser setting will take priority in
determining whether to follow the HTTP headers or not.
If using session, add session_cache_limiter('private,
must-revalidate');
Otherwise, add header('private, must-revalidate');
Refer:
http://www.mnot.net/cache_docs/
+++++
@revision 2 See comments. The bug is IE only