/** * Used to read a session values for a key or return values for all keys. * * In your controller: $this->Session->read('Controller.sessKey'); * Calling the method without a param will return all session vars * * @param string $name the name of the session key you want to read * @return mixed value from the session vars * @access public * @link http://book.cakephp.org/view/1314/read */ public function read($name = null) { if ($this->__active === true) { $this->__start(); return parent::read($name); } return false; }