I'm experiencing problems when trying to destroy sessions they seem to be destroyed,
but if I click the back button the variables return, as regions of the page that should be hidden become visible again,
this part of the site is for administration The front part of the site also has a login but this does not occur
The admin part's index page is in a subfolder, I have a file called notLoggedIn.php, that I include on pages I want to lock administrator out of,notLoggedIn.php tests for the existence of a session that is set on loggin
when I logout, click the back button this actually works, it redirects me back to the admin index but, now it displays my username again and then I can't log back in???
I've tried
$_SESSION = array()
if (isset($_COOKIES[session_name()])) {
$params = session_get_cookie_params();
setcookie(session_name(), '', 1, $params['path'], $params['domain'], $params['secure'], isset($params['httponly']));
}
session_destroy()
Unsseting sessions by name
As I said this doesn't happen to the other part of the site...any suggestions?