src/wcmf/lib/presentation/Controller.php
protected function setLocalSessionValue($key, $value) {
    $sessionVarname = get_class($this);
    $localValues = $this->session->get($sessionVarname, null);
    if ($localValues == null) {
      $localValues = [];
    }
    $localValues[$key] = $value;
    $this->session->set($sessionVarname, $localValues);
  }
protected function setLocalSessionValue($key, $value) {
    $sessionVarname = get_class($this);
    $localValues = $this->session->get($sessionVarname, null);
    if ($localValues == null) {
      $localValues = [];
    }
    $localValues[$key] = $value;
    $this->session->set($sessionVarname, $localValues);
  }
protected function setLocalSessionValue ( $ key , $ value ) { $ sessionVarname = get_class ( $ this ) ; $ localValues = $ this -> session -> get ( $ sessionVarname , null ) ; if ( $ localValues == null ) { $ localValues = [ ] ; } $ localValues [ $ key ] = $ value ; $ this -> session -> set ( $ sessionVarname , $ localValues ) ; }
Get the value of a local session variable.
@param $key The key (name) of the session vaiable.
@param $value The value of the session variable.
Get the value of a local session variable .