What is the proper syntax for setcookie() in PHP 7.3? I usually use setcookie() like this:
setcookie("genone", "genoneinfo", "$cookie_expiration_time","/","",1,1);
That works, but how do I add the samesite option? I have tried like this, but it fails with php errors:
setcookie("genone", "genoneinfo", "$cookie_expiration_time","/","",1,1,['samesite'=>'Lax']);
errors: PHP Warning: setcookie() expects at most 7 parameters, 8 given zzz.com/index.php on line 73, referer: https://zzz.com/
Thanks, Todd