FluidTYPO3\Vhs\ViewHelpers\Once\CookieViewHelper::storeIdentifier PHP Method

storeIdentifier() protected method

protected storeIdentifier ( ) : void
return void
    protected function storeIdentifier()
    {
        $identifier = $this->getIdentifier();
        $domain = $this->arguments['lockToDomain'] ? $_SERVER['HTTP_HOST'] : null;
        setcookie($identifier, '1', time() + $this->arguments['ttl'], null, $domain);
    }