Example #1
0
 /**
  * Clear the cookie information
  *
  * @return Glitch_Form_Element_Hash_Cookie
  */
 public function clear()
 {
     $timeout = Glitch_Request::getRequest()->getServer('REQUEST_TIME') - $this->_parent->getTimeout();
     setcookie($this->_key, '', $timeout, $this->_url);
     return $this;
     //$this->_parent->getValidator('Identical')->clearErrorMessages();
     //$this->_parent->_isError = false;
 }