/** * Set default httponly * * Sets the default cookie httponly flag to use with the {@link * AeCookie::set()} method * * @param bool $http * * @return bool */ public static function setHttp($http) { if (!version_compare(PHP_VERSION, '5.2.0', '>=')) { return false; } if ($http instanceof AeScalar) { $http = $http->toBoolean()->value; } self::$_http = (bool) $http; return true; }