Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/11/2008, 09:39
sioke
 
Fecha de Ingreso: octubre-2008
Mensajes: 64
Antigüedad: 15 años, 6 meses
Puntos: 0
Problema al destruir session...

Bueno este es el codigo php que uso para destruir las variables session el problema es que en FF me funciona perfecto pero no me funciona en Internet explorer...

No me entra en el "if" aunque ya me halla logueado

Código HTML:
<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="estilos.css" >

</head>



<body>
<div id="frame">
<p><?php
if(!isset($_SESSION['s_username']))
{  
    echo "No esta logueado en la pagina, si ya esta registrado ";
    echo "<a href=inicio.php>Identifiquese</a> <br>";
    echo "Si no aún no esta registrado en la pagina "; 
    echo "<a href=registro.htm>Registrese</a>"; 
} 
else
{  
    session_unset();  
    session_destroy();
    echo "Se ha desconectado de Play Now <br>";
    echo "Puede volver a la pagina de inicio pulsando ";
    echo "<a href=inicio.php>aqui</a>";
}  
?> 
</p>


</div>
<br /><div style="z-index:3" class="smallfont" align="center"><!-- google_ad_section_start(weight=ignore) -->LinkBacks Enabled by <a rel="nofollow" href="http://www.crawlability.com/vbseo/">vBSEO</a> 3.1.0<!-- google_ad_section_end --></div><br /><div style="z-index:3" class="smallfont" align="center"><!-- google_ad_section_start(weight=ignore) -->LinkBacks Enabled by <a rel="nofollow" href="http://www.crawlability.com/vbseo/">vBSEO</a> 3.1.0<!-- google_ad_section_end --></div></body>
</html>