Código PHP:
<?php session_register("autenticado");
if ($autenticado != "SI") {
header("Location: autenticar.php");
exit();
}
?>
Código PHP:
<?php
if($_SESSION["autenticado"]){
header("Location: autenticar.php");
exit();
}
?>
GRACIAS