src/http/data/HttpCookie.php
public function set(
        $name,
        $value,
        $expirationTime = HttpCookie::DEFAULT_EXPIRATION_TIME
    ) {
        setcookie($name, $value, time() + $expirationTime, "/");
    }
public function set(
        $name,
        $value,
        $expirationTime = HttpCookie::DEFAULT_EXPIRATION_TIME
    ) {
        setcookie($name, $value, time() + $expirationTime, "/");
    }
Sets a request attribute.

@param string $name           Request attribute.
@param mixed  $value          Request value.
@param int    $expirationTime Expiration time (default is one year)

@return void