joanhey / AdapterMan

Run almost any PHP app faster and asynchronously with Workerman, without touch 1 line of code in your fw or app. Also use it as Serverless.
https://twitter.com/adaptermanphp
MIT License
759 stars 50 forks source link

optimize setcookie #15

Closed yangguangwuwu closed 1 year ago

yangguangwuwu commented 1 year ago

https://www.php.net/manual/en/function.setcookie.php

Alternative signature available as of PHP 7.3.0 (not supported with named parameters):

setcookie(string $name, string $value = "", array $options = []): bool

yangguangwuwu commented 1 year ago

Some frameworks use

setcookie(string $name, string $value = "", array $options = []): bool

joanhey commented 1 year ago

We need to add the samesite, here and in Workerman.