Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/03/2006, 12:22
Enea
 
Fecha de Ingreso: junio-2003
Mensajes: 744
Antigüedad: 20 años, 10 meses
Puntos: 0
Te paso los dos codigos que tengo..
//INICIA LA SESION
Código:
<? 
if (($usuario=="usuario") && ($contrasena=="contrasena"))
{ 
    session_start();
    $_SESSION["autentificado"]="SI"; 
    header("Location:proof.php"); 
}
else 
{ 
    header("Location:index.php?errorusuario=si"); 
} 
?>
//MUESTRA LA PAGINA SI TAS AUTENTIFICADO
Código:
<?
session_start(); 

if ($_SESSION[['autentificado'] != "SI") 
{ 
    header("Location: index.php"); 
    exit(); 
} 
?>
Por cierto, gracias.. no te habia dicho nada..
__________________
Ibisof | Saludos desde Eivissa !!! :p