I have a logout.php page that ends a user session and works well, and does the following:
session_start (); session_unset (); session_destroy ();
When testing with Safari, I just noticed that when you log out, you can click the "Back" button to return to the previous page, which requires authentication but is not requested. You cannot go from this page without entering navigation, but it should not display the previous page in the first place.
So far, in my testing, this is only a problem with Safari on Mac OS X, and there are a number of other reports on this, but without the permission that I could find:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_23702691.html
I would like to disable this behavior using the Safari return button - I was surprised that this happens first.
Thanks Steve
source
share