/** * Set default secure * * Sets the default cookie secure flag to use with the {@link * AeCookie::set()} method * * @param bool $secure * * @return bool */ public static function setSecure($secure) { if ($secure instanceof AeScalar) { $secure = $secure->toBoolean()->value; } self::$_secure = (bool) $secure; return true; }