Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/09/2003, 13:36
Avatar de libiob
libiob
 
Fecha de Ingreso: julio-2003
Ubicación: Lima
Mensajes: 125
Antigüedad: 20 años, 9 meses
Puntos: 1
Gracias por la ayuda, reviso ahora el script, hice esto y aparentemente funciona ok quisiera que me den su critica o quizas algun punto de vista en cuanto a seguridad que yo no haya tomado en cuenta:

Antes esta el clasico formulario de ingreso de usuario y clave luego hice este script:

Código PHP:
<?
if($new=='user')
{
if (
$usuario=='user1' && $pass=='x')
{
    
session_start(); 
    
session_register("autentificado"); 
    
$autentificado "SI"
header("Location: home.php?dat=1");
}
if (
$usuario=='user2' && $pass=='xx')
{
    
session_start(); 
    
session_register("autentificado"); 
    
$autentificado "SI"
header("Location: home.php?dat=2");
}
if (
$usuario=='user3' && $pass=='xxx')
{
    
session_start(); 
    
session_register("autentificado"); 
    
$autentificado "SI"
header("Location: home.php?dat=3");
}
}
else
{
header("Location: index.php?errorusuario=si&usuario=$usuario");
}
?>
Gracias por el tiempo que dan a esto.

Libio
__________________
Libio Balbin T.
Web Master
http://www.kingperu.net &copy; 2003