Subversion Repositories Applications.annuaire

Compare Revisions

Ignore whitespace Rev 119 → Rev 120

/trunk/controleurs/IdentificationControleur.php
11,7 → 11,7
* @link /doc/annuaire/
*/
 
Class IdentificationControleur extends Controleur {
Class IdentificationControleur extends AppControleur {
 
private $nom_cookie_persistant = '';
private $duree_identification = '0';
46,6 → 46,12
$this->objet_identification = Config::get('objet_identification');
 
// Expiration si l'utilisateur ne referme pas son navigateur
$this->objet_identification->setExpire(0);
// Création d'un cookie pour rendre permanente l'identification de Papyrus
$cookie_val = md5($pass).$utilisateur;
setcookie(session_name().'-memo', $cookie_val, 0, '/');
// On loggue l'utilisateur
$this->objet_identification->username = $utilisateur;
$this->objet_identification->password = $pass;
58,7 → 64,7
$this->objet_identification = Config::get('objet_identification');
$this->objet_identification->logout();
 
return true;
}