function login($name, $password) { $ci =& get_instance(); $result = User_helper::loginUser($name, $password, &$this); if ($result) { $this->_refreshSession(); } return $result; }