note 126348 deleted from function.setcookie by crell
| From: | crell@php.net | Date: | Tue, 12 Apr 2022 00:37:02 +0000 |
| Subject: | note 126348 deleted from function.setcookie by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218152@lists.php.net to get a copy of this message | ||
Note Submitter: j () fy7 !eu
----
In versions below 7.4 to add "samesite" param to cookie, you can add it on $path value.
<?php
setcookie('foo','1',(time() + 86400), '/; samesite=lax',
'www.example.com',false,false);
?>