Safari Back button not honouring PHP logout session?

Ensure that any page you serve which requires authentication is being sent with suitable cache control headers. The page is being displayed from the browser cache, by providing cache control which explicitly forbids caching you should be able to stop this From php.net/manual/en/function.header.php?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past? Specifically for Safari, there's some discussion about caches and unload events, which you might be able to use to avoid caching.It seems that WebKit does have some complications with caching in general webkit.org/blog/427/webkit-page-cache-i-... http://webkit.org/blog/516/webkit-page-cache-ii-the-unload-event.

Ensure that any page you serve which requires authentication is being sent with suitable cache control headers. The page is being displayed from the browser cache, by providing cache control which explicitly forbids caching you should be able to stop this. From php.net/manual/en/function.header.php Specifically for Safari, there's some discussion about caches and unload events, which you might be able to use to avoid caching.It seems that WebKit does have some complications with caching in general.

webkit.org/blog/427/webkit-page-cache-i-... webkit.org/blog/516/webkit-page-cache-ii....

Thanks for your comment. I've previously tried this to no avail. I just added them again and it's still loading the page which requires authentication.

Problem seems to be with webkit based browsers such as Safari for Mac and the iPhone as well. – Steve Kemp Jun 9 '10 at 14:13 I've added a couple of links. When you do the "login, logout, back" procedure, try using the Safari/Chrome developer tools to inspect the HTTP headers the browser has detected (Developer Tools -> Resources, click on the page entry on the left).

– ptomli Jun 9 '10 at 14:42 Thanks very much I will look into this - further searching had led me to the same conclusion re the onUnload event etc. Thanks – Steve Kemp Jun 9 '10 at 16:20.

I found that this answer Preventing cache on back-button in Safari 5 works.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions