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);
	}