Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/06/2010, 01:51
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 15 años, 10 meses
Puntos: 6
no reconoce cookies?

hola, tengo este codigo puesto, el cual hace que cuando el usuario esta longeado, se muestre un texto, y cuando es un usuario no longeado, que se muestre otro, pero no me funciona, tengo otro script con lo mismo puesto y en ese si me funciona y en este no :|

Código PHP:
    <table width="100%" height="225" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <th height="37" scope="col">&nbsp;</th>
      </tr>
      <tr>
        <th scope="row">
        <?php   

if(isset($_COOKIE['loggedin'])) {
 
echo 
'<a href="perfil.php">Mi Perfil</a>';
 
} else {
 
echo 
'<a href="registrarse.php">Registrarse</a>';
 
}

if(isset(
$_COOKIE['loggedin'])) {
 
echo 
'<a href="cerrar-sesion.php">Cerrar Sesion</a>';
 
} else {
 
echo 
'<a href="iniciar.php">Iniciar Sesion</a>';
 
}
?>
        </th>
      </tr>
    </table>