Sujet : Hoa_Session lifetime
Hey,
J'ai un fichier de configuration (array) contenant une entrée concernant la session:
'lifetime' => 24*60*60Je récupère donc ma config (Hoa_Configuration) pour obtenir ma valeur de cette façon:
$this->_config->session->lifetimeJe donne le tout à ma session
Hoa_Session::setExpireSecond($this->_config->session->lifetime);J'obtiens:
Uncaught exception : Hoa_Session::setExpireSecond: (25) The expiration time must be an int, that represents seconds. Given object. in C:\wamp\www\ivelo.fr\Framework\Library\Session\Session.php at 623.Si je fais:
Hoa_Session::setExpireSecond(24*60*60);Et la ça fonctionne !
Et pourtant:
var_dump($this->_config->session->lifetime);
// object(Hoa_StdClass)#63 (1) { ["_data:protected"]=> array(1) { [86400]=> int(86400) } }Voilou, une idée ?
Merci d'avance