54 $mergeDefault =
true )
57 if ((
true === $mustExists )
58 && (
false === isset( $_COOKIE[ $name ] )))
66 foreach(
$temp as $optkey => $optvalue )
68 if ( $optvalue !=
"" )
69 { $options[ $optkey ] = $optvalue; }
74 if (
true === $mergeDefault )
76 $defaults = self::get_cookie_defaults();
77 $options = array_merge( $defaults, $options );
82 if ( version_compare( PHP_VERSION,
'7.3.0',
">=" ))
84 $return = setcookie( $name,
93 $return = setcookie( $name,
95 (
int) $options[
"expires" ],
96 $options[
"path" ] .
';samesite=' . $options[
"samesite" ],
99 $options[
"httponly" ]