src/Anonym/Http/Redirect.php
public function withCookie($name, $message = null, $time = 3600)
    {
        if (!is_array($name)) {
            $name = [$name, $message];
        }

        foreach ($name as $key => $message) {
            $this->redirector->getCookieBase()->set($key, $message, $time);
        }

        return $this;
    }
public function withCookie($name, $message = null, $time = 3600)
    {
        if (!is_array($name)) {
            $name = [$name, $message];
        }

        foreach ($name as $key => $message) {
            $this->redirector->getCookieBase()->set($key, $message, $time);
        }

        return $this;
    }
public function withCookie ( $ name , $ message = null , $ time = 3600 ) { if ( ! is_array ( $ name ) ) { $ name = [ $ name , $ message ] ; } foreach ( $ name as $ key => $ message ) { $ this -> redirector -> getCookieBase ( ) -> set ( $ key , $ message , $ time ) ; } return $ this ; }
redirect with single or multipile cookies

@param array|string $name
@param mixed $message
@param int $time
@return $this
redirect with single or multipile cookies