Webiny\Component\Http\Session::save PHP Method

save() public method

Save, or overwrite, a session value under the given $key with the given $value.
public save ( string $key, mixed $value )
$key string Key for which you wish to get the value.
$value mixed Value that will be stored under the $key.
    public function save($key, $value)
    {
        $this->sessionBag->removeKey($key)->append($key, $value);
        $_SESSION[$key] = $value;
        return $this;
    }