Por favor ......... AYUDA bis
MUCHAS GRACIAS ABRAHAMCC, creo que como me dijiste es correcto, lo único es que así no mantiene la sesión iniciada y te manda a registrarte...
<?php
session_start();
if($_SESSION['autentificado']!="n1"){header("Location:error.php?".SID);exit();}
if($_SESSION['autentificado']!="n2"){header("Location:registro.php?".SID);exit();}
?>
Un saludo
<?php
session_start();
if($_SESSION['autentificado']!="n1"){header("Location:error.php?".SID);exit();}
if($_SESSION['autentificado']!="n2"){header("Location:registro.php?".SID);exit();}
?>
Un saludo