I've been attempting to write a "Logout" link that goes to logout.php.
On the main page, up top, I have:
<?php
session_start();
header("Cache-control: private");
?>
the registered session variables, if I am understanding this correctly, is:
$SESSION['user']
$SESSION['pass']
My logout.php page has this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>logout</title>
<meta http-equiv="Refresh" content="2;URL=test-webusage.php" />
</head>
<body>
<?php
unset($_SESSION['user']); ?>
</body>
</html>
But so far it does not end the session, because I can still click the back button and find myself logged in. Also, on the logout.php page I made it redirect to the main search page, and if there is no session, it redirects to the login page.
HAve I missed something?