Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/09/2009, 06:14
elroket
 
Fecha de Ingreso: septiembre-2009
Mensajes: 39
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Problema al hacer logout

<?php
session_start();
if(!isset($_SESSION["login"])){
header("location:login.php");
} else {
unset($_SESSION);
$_SESSION=array();
session_destroy();
header("location: indexfinal.php");
}
?>


y el codigo del form q llama al logout donde esta el desconectar es este

echo "<br><a href='logout.php'>Desconectarse</a>";
echo "</body></html>";