Re: http_cookie_set and http_cookie_remove
| From: | Andreas Treichel | Date: | Mon, 24 Jul 2017 23:33:10 +0000 |
| Subject: | Re: http_cookie_set and http_cookie_remove | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100038@lists.php.net to get a copy of this message | ||
Hi Andrey,
1. The wording here implies that these are the *only* attributes allowed. In the interest of forward-compatibility, I'd allow arbitrary attributes as well.I just try to implement something like this, to allow arbitrary attributes. Is this what you prefer? http_cookie_set('foobar', '1337', [
'foo' => 23,
'bar' => 42
]);
Set-Cookie: foobar=1337; foo=23; bar=42