Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/05/2010, 13:59
Atn69
 
Fecha de Ingreso: marzo-2010
Mensajes: 8
Antigüedad: 14 años, 1 mes
Puntos: 0
Exclamación [Ayuda] Problema con sesiones

tengo un login y tengo algunos fallos con el autentificar sesión:
Cita:
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at /var/www/vhost/x-ti.es/home/html/games/index.php:9) in /var/www/vhost/x-ti.es/home/html/games/includes/login.php on line 18

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /var/www/vhost/x-ti.es/home/html/games/index.php:9) in /var/www/vhost/x-ti.es/home/html/games/includes/login.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhost/x-ti.es/home/html/games/index.php:9) in /var/www/vhost/x-ti.es/home/html/games/includes/login.php on line 25
Linea 18:
Código PHP:
session_register("nombre"); //registramos la variable usuario que contendrá el nick del user 
Aclaración:
$_SESSION[nombre] = $ok["nombre"]; //damos el nick a la variable usuario de
y de hay sacamos lo de session_register("nombre");

Linea 25:
Código PHP:
Header("Location: index.php"); //volvemos al login donde nos saldrá nuestro menú de usuario 
Un saludo y gracias si necesitan mas información pídanla