Esempio n. 1
0
 /**
  * Used to check if a session variable is set
  *
  * In your controller: $this->Session->check('Controller.sessKey');
  *
  * @param string $name the name of the session key you want to check
  * @return boolean true is session variable is set, false if not
  * @access public
  * @link http://book.cakephp.org/view/1315/check
  */
 public function check($name)
 {
     if ($this->__active === true) {
         $this->__start();
         return parent::check($name);
     }
     return false;
 }