Ejemplo n.º 1
0
 public function get_token_value()
 {
     if (!isset($this->_token_id)) {
         trigger_error("Construct Not Called on Iron Class");
     }
     if (!isset($_SESSION[$this->_token_id])) {
         $_SESSION[$this->_token_id] = urlencode(Cipher::getRandomKey());
     }
     return $_SESSION[$this->_token_id];
 }