Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7081 invoked from network); 30 Jul 2018 02:47:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2018 02:47:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:60680] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/25-36025-B3C7E5B5 for ; Sun, 29 Jul 2018 22:47:26 -0400 Received: (qmail 89349 invoked by uid 89); 30 Jul 2018 02:47:20 -0000 Received: from unknown (HELO mail-yb0-f169.google.com) (yohgaki@ohgaki.net@209.85.213.169) by 0 with ESMTPA; 30 Jul 2018 02:47:20 -0000 Received: by mail-yb0-f169.google.com with SMTP id k124-v6so4195095ybk.6 for ; Sun, 29 Jul 2018 19:47:19 -0700 (PDT) X-Gm-Message-State: AOUpUlHxa5X54tIjs/6pPiLfnb3cpGK+1qdw2gYzYNHaCTnTtPMgeY8w VpnXTXpYL0EaVtqOnqVjRgejHw9Hj4T3VJUXZg== X-Google-Smtp-Source: AAOMgpeHnf5svY+KQCT8DtKowoQRGYPmfk73qfzHAKYQiHBhQ9fkKEZmamrXyzwf9e92iRRE0KGqM/wvdbR5RQf1I8I= X-Received: by 2002:a25:e44:: with SMTP id 65-v6mr8222752ybo.491.1532918833585; Sun, 29 Jul 2018 19:47:13 -0700 (PDT) MIME-Version: 1.0 References: <1abd260d-ebc4-a062-3381-72485946e8bc@gmail.com> In-Reply-To: Date: Mon, 30 Jul 2018 11:46:37 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Andrey Andreev Cc: Niklas Keller , mail@pmmaga.net, f.bosch@genkgo.nl, Stas Malyshev , PHP internals Content-Type: multipart/alternative; boundary="0000000000008ba7b805722e7a67" Subject: Re: [PHP-DEV] [VOTE] Same Site Cookie RFC From: yohgaki@ohgaki.net (Yasuo Ohgaki) --0000000000008ba7b805722e7a67 Content-Type: text/plain; charset="UTF-8" On Sun, Jul 29, 2018 at 9:27 PM Andrey Andreev wrote: > Hi, > > On Sun, Jul 29, 2018 at 7:22 AM, Yasuo Ohgaki wrote: > > > > One thing regarding implementation. > > Since the internet RFC has only 2 values for "samesite", the parameter > can > > be > > bool rather than string so that users can avoid "broken security by a > typo". > > If "samesite" has more than 2 values, the INI handler can be changed so > that > > it can > > handle both bool and string parameters. > > > > The attribute has 2 possible values, but those are 2 different modes > of operation *when enabled*, not 2 states in total. It doesn't fit in > a boolean, and even if it did it wouldn't be forward-compatible that > way. > What do you mean by "those are 2 different modes of operation *when enabled*, not 2 states in total. "? samesite-value = "Strict" / "Lax" Flag is flag. It does not matter if it is used as combined values. An INI value can be bool and string/etc. Even when 3rd value is added, it can be supported. Such INIs exist in PHP already. Regards, -- Yasuo Ohgaki --0000000000008ba7b805722e7a67--