src/Http/Cookie.php
public function setWithExpire($key, $value, $expire)
    {
        if (setcookie($key, $value, time() + $expire, '/', '', false, true)) {
            return true;
        }
        return false;
    }
public function setWithExpire($key, $value, $expire)
    {
        if (setcookie($key, $value, time() + $expire, '/', '', false, true)) {
            return true;
        }
        return false;
    }
public function setWithExpire ( $ key , $ value , $ expire ) { if ( setcookie ( $ key , $ value , time ( ) + $ expire , '/' , '' , false , true ) ) { return true ; } return false ; }
Set cookie item with expire

@param string $key
The cookie key
@param mixed $value
The cookie value
@param integer $expire
The cookie $expire

@return boolean Fail if an output has be done before this method call
Set cookie item with expire