Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/04/2012, 09:46
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 8 meses
Puntos: 331
Respuesta: problema con la clase https

Empieza por comprobar en qué parte del código falla el script, casi seguro el tema está en el if:

Código PHP:
Ver original
  1. if(!isUserLoggedIn()) {
  2. die("Llegas hasta aquí??");
  3.  } else {
  4. die("O llegas hasta aquí??");
  5.             if ($this->https  && isset($this->protocol)){
  6.               header('Strict-Transport-Security: max-age=500');
  7.                 } elseif ($this->https  && !isset($this->protocol)){
  8.               header('Status-Code: 301');
  9.               header('Location: https://'.$this->host.$this->url);
  10.                 }
  11.             }

Qué hace la función isUserLoggedIn()?
__________________
Fere libenter homines, id quod volunt, credunt.