Re: [VOTE] Same Site Cookie RFC

From: Date: Tue, 24 Jul 2018 18:05:40 +0000
Subject: Re: [VOTE] Same Site Cookie RFC
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-102964@lists.php.net to get a copy of this message
Hi, On Tue, Jul 24, 2018 at 7:37 PM, Pedro Magalhães <mail@pmmaga.net> wrote: > On Sun, Jul 22, 2018 at 6:54 PM Andrey Andreev <narf@devilix.net> wrote: >> >> Last, but certainly not least, we talk about $expires here only becase >> that's how it's (currently) named in either documentation and/or >> reflection. But for all intents and purposes it may as well be named >> $fooBar and it wouldn't matter as long as it is a concrete parameter, >> whereas an associative array key name is very important. Now I'd have >> to remember if it actually is "lifetime", "expire" or >> "expires" ... or >> is it "max-age"? Not only that, but if it is either "expires" or >> "max-age", I would rightfully have reasons to believe that the >> expected input should be match the actual Set-Cookie attribute instead >> of a PHP-specific value. >> That's very unintuitive and I believe we have a general consensus on >> this list that array parameters are somewhat evil. You have to >> remember that the only reason we're doing this here is to avoid >> parameter creep with potential for infinity, and nothing else. > > > Hi Andrey, > > Well, "expires" is what ends up in the cookie header itself so I think that > it's simple to remember. But I do understand your arguments on semantic > purity and the fact that Max-Age is derived from it but I still believe that > in this case, it's not worth the distinction. If there ever comes a new > attribute that won't be used verbatim, what would we do? Leave it between > $expires and the options array and break all existing code? Leave it to the > end of the signature to avoid the BC break but then we are left with > something really awkward? > Look, I get it - you have your preferences and don't want to give up on them. But now you're just speculating and aside from basically saying "not a big deal", you haven't really addressed my arguments. > Given that we understand each other but we just disagree on what is more > important, I'd really like to hear someone else's opinion. If we are to get > something into 7.3 (which I believe we should due to > https://github.com/php/php-src/pull/2613#issuecomment-401266510œw > à×þÔçÈ5B¶o½) and with > the feature freeze in one week, we should reach an agreement on what to do > very soon. > Fair enough. I too would like to see more people involved in the discussion.. Although ... if the RFC is considered to be accepted (which I am still not 100% sure if it should be, but that seems to be the case), then technically we already have a decision made by vote. Again, I'm not particularly happy with how it was handled, but we do have it. Cheers, Andrey.

« previous php.internals (#102964) next »