public function setState($name, $value)
    {
        $this->_userData[$name] = $value;
        Session::get()->updateListItem(App::get()->shortName . $this->sessionKey, 'vars', $this->_userData, array('vars' => array(), 'rights' => array()));
        return $this;
    }
public function setState($name, $value)
    {
        $this->_userData[$name] = $value;
        Session::get()->updateListItem(App::get()->shortName . $this->sessionKey, 'vars', $this->_userData, array('vars' => array(), 'rights' => array()));
        return $this;
    }
public function setState ( $ name , $ value ) { $ this -> _userData [ $ name ] = $ value ; Session :: get ( ) -> updateListItem ( App :: get ( ) -> shortName . $ this -> sessionKey , 'vars' , $ this -> _userData , array ( 'vars' => array ( ) , 'rights' => array ( ) ) ) ; return $ this ; }
Set user state.
@param string $name
@param string $value
@return $this
Set user state .