src/Control/Session.php
public function set($name, $val)
    {
        $var = &$this->nestedValueRef($name, $this->data);

        // Mark changed
        if ($var !== $val) {
            $var = $val;
            $this->markChanged($name);
        }
        return $this;
    }
public function set($name, $val)
    {
        $var = &$this->nestedValueRef($name, $this->data);

        // Mark changed
        if ($var !== $val) {
            $var = $val;
            $this->markChanged($name);
        }
        return $this;
    }
public function set ( $ name , $ val ) { $ var = & $ this -> nestedValueRef ( $ name , $ this -> data ) ; // Mark changed if ( $ var !== $ val ) { $ var = $ val ; $ this -> markChanged ( $ name ) ; } return $ this ; }
Set session value

@param string $name
@param mixed $val
@return $this
Set session value