Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/07/2003, 04:49
MMU
Invitado
 
Mensajes: n/a
Puntos:
Bueno, he realizado el cambio de orden que recomendaba manoloweb, y he añadido el archivo logout.php con el codigo que comentabas, pero al ajecutarlo en el servidor me devuelve este error:

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/public_html/logout.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/logout.php:3) in /home/public_html/logout.php on line 4

El archivo logout.php es:

Código PHP:
<?
session_unset
();
session_destroy();
header("Location: confirmacion.php");
exit();
?>
Gracias por anticipado