Cita:
Linea 18: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
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
Código PHP:
session_register("nombre"); //registramos la variable usuario que contendrá el nick del user
$_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
![Corazón](http://static.forosdelweb.com/fdwtheme/images/smilies/love.png)
![Corazón](http://static.forosdelweb.com/fdwtheme/images/smilies/love.png)