existeAttribut($nom)) { return $_SESSION[$nom]; } else { throw new Exception("Attribut '$nom' absent de la session"); } } }