src/Request.php
public static function setCookie($key, $value, $expire = -1, $path = "/", $domain = null) {
		if($expire == -1)
			$expire = time() + 2592000; // 30 days

		return setcookie($key, $value, $expire, $path, $domain);
	}
public static function setCookie($key, $value, $expire = -1, $path = "/", $domain = null) {
		if($expire == -1)
			$expire = time() + 2592000; // 30 days

		return setcookie($key, $value, $expire, $path, $domain);
	}
public static function setCookie ( $ key , $ value , $ expire = - 1 , $ path = "/" , $ domain = null ) { if ( $ expire == - 1 ) $ expire = time ( ) + 2592000 ; // 30 days return setcookie ( $ key , $ value , $ expire , $ path , $ domain ) ; }
Set a value in the user's cookie
@param  string  $key    The key to set
@param  string  $value  The value to set
@param  integer $expire The time to expire (defaults to -1, -1 is 'now + 30 days')
@param  string  $path   The cookie path inside the domain (defaults to '/')
@param  string  $domain The domain this cookie is assigned to (defaults to server default)
@return bool
Set a value in the user s cookie