my php site has 6 pages. one of them is LOGIN.php and one is LOGOFF.php
if you try access one of the other 4 pages without logging in, they will redirect you to LOGOFF.php
and then that deletes all session variables and redirects you to LOGIN.php
<head>
<title>Logoff</title>
</head>
<link href="Assign2.css" rel="stylesheet" type="text/css" />
<?php
session_start();
header("Cache-Control: no-cache");
header("Expires: -1");
session_destroy();
header("location: login.php");
echo 'test error'; //doesnt work
?>
thats my logoff.php, after the redirect how can i make the login page display an error saying "access to this page requires you to be logged in"? the test error doesn't print out on the login.php