En la página protegida lo que pongo es:
Código PHP:
/*header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Expira en fecha pasada
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Siempre página modificada
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache");*/
session_start();
if(!isset($_SESSION['adminlogin']) && !isset($_SESSION['adminpasswd']) && !isset($_SESSION['admintype'])){
echo "<html><head><title>Error !!!!</title>
</head>
<style type='text/css'>
.style1 {
font-family: Tahoma;
font-weight: bold;
font-size: 10px;
}
</style>
<body background='img/background.jpg'>
<div align='center'><img src='img/logout.gif' width='19' height=19 align=absmiddle><span class=style1>No tiene derechos suficientes para acceder a esta página <br> <a href=index.php?modules=adminsite>Volver</a></span>
</div>
</body>
</html>";
exit();
}