Closed GoogleCodeExporter closed 8 years ago
This problem is more generically associated with server-side dynamically
generated
pages. It appears that the HTTP headers PHP sends when sessions are in use
specify
cache control values that cause a complete reload of the page in IE when
navigated
back to after going off-site. A work-around is to explicitly tell PHP what
type of
caching the browser is to use. However, this will likely have ramifications
with
dynamically generated PHP pages that cannot be cached. In my case the page is
completely DHTML, so the page is essentially static from a caching standpoint.
It
may be possible to tune the brower's cache control with appropriate page
expiration
values that could allow dynamic server-side pages and still allow navigation
back to
the page after a short duration off-site navigation.
Adding the following line BEFORE session_start() will take care of the problem:
session_cache_limiter('public');
Original comment by ois...@gmail.com
on 5 Dec 2007 at 12:15
I am happy to add this logging to the test page and add the issue of HTTP
headers to
the FAQ that's I'm in the process of writing. Thanks for pointing out this
issue and
finding your own server-side solution! Keeping the issue open until I add the
test
and the documentation.
Original comment by bdpathfi...@gmail.com
on 11 Dec 2007 at 6:08
Also, could you comment as to why you need to set caching headers on blank.html
at
all? Does PHP require you to do this for all pages on your site, even utility
pages
like this one? Does it throw errors if you don't? Is there some other magic
you're
trying to work in blank.html with custom code of some kind? I just want to
understand
why this error came up?
Original comment by bdpathfi...@gmail.com
on 11 Dec 2007 at 11:30
I've added this to the FAQ with a pointer to this bug thread for further
reference.
Closing as this is not an issue with RSH but an issue with how PHP is
configured by
the application developer.
Original comment by bdpathfi...@gmail.com
on 11 Dec 2007 at 11:43
Original comment by bdpathfi...@gmail.com
on 11 Dec 2007 at 11:44
Original issue reported on code.google.com by
ois...@gmail.com
on 5 Dec 2007 at 5:26