Re: http_cookie_set and http_cookie_remove

From: Date: Tue, 25 Jul 2017 07:57:50 +0000
Subject: Re: http_cookie_set and http_cookie_remove
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-100039@lists.php.net to get a copy of this message
HI, On Tue, Jul 25, 2017 at 2:33 AM, Andreas Treichel <gmblar@gmail.com> wrote: > 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 > That is just what I had in mind, yes. Cheers, Andrey.

« previous php.internals (#100039) next »