_generated\FunctionalTesterActions::setCookie PHP Method

setCookie() public method

Sets a cookie with the given name and value. You can set additional cookie params like domain, path, expires, secure in array passed as last argument. php setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3'); ?>
See also: Codeception\Lib\InnerBrowser::setCookie()
public setCookie ( $name, $val, array $params = null ) : mixed
$name
$val
$params array
return mixed
    public function setCookie($name, $val, $params = null)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));
    }
FunctionalTesterActions