src/SessionTrait.php
public function setFlash(string $key, $value): SessionInterface
    {
        $key = $this->flashKey($key);

        return $this->set($key, $value);
    }
public function setFlash(string $key, $value): SessionInterface
    {
        $key = $this->flashKey($key);

        return $this->set($key, $value);
    }
public function setFlash ( string $ key , $ value ) : SessionInterface { $ key = $ this -> flashKey ( $ key ) ; return $ this -> set ( $ key , $ value ) ; }
Set a one-time value within session data.

@param string $key The name of the flash value to update
@param mixed $value The value to store against the key

@return SessionInterface
Set a one - time value within session data .