Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102945 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29399 invoked from network); 21 Jul 2018 23:22:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2018 23:22:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.73 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.73 outbound2.mail.transip.nl Received: from [149.210.149.73] ([149.210.149.73:40426] helo=outbound2.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/89-47674-910C35B5 for ; Sat, 21 Jul 2018 19:22:06 -0400 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound2.mail.transip.nl (Postfix) with ESMTP id 41Y3gB17nVzZwQy for ; Sun, 22 Jul 2018 01:21:58 +0200 (CEST) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 41Y3g71jHPz12MPK for ; Sun, 22 Jul 2018 01:21:55 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id f21-v6so12574740wmc.5 for ; Sat, 21 Jul 2018 16:21:55 -0700 (PDT) X-Gm-Message-State: AOUpUlE4/bvJNDrsDgkManQAKAv/UOpXReIjNUbUsnRq9V7wJfL037A+ WkkFRsb9nEC0rkhl1PulYk+QkIjvTIh83miY3x8= X-Google-Smtp-Source: AAOMgpf1vdoErzqrlQKaEEberUMVyUuXuL/tVHO0OwPVmQe8OyvlCtNidEetcSD2NE4OaaH6OVNkkGL2Q2kWZrdyKLE= X-Received: by 2002:a1c:96c8:: with SMTP id y191-v6mr4290861wmd.37.1532215313288; Sat, 21 Jul 2018 16:21:53 -0700 (PDT) MIME-Version: 1.0 References: <1abd260d-ebc4-a062-3381-72485946e8bc@gmail.com> In-Reply-To: Date: Sun, 22 Jul 2018 00:21:43 +0100 X-Gmail-Original-Message-ID: Message-ID: To: narf@devilix.net Cc: f.bosch@genkgo.nl, Stanislav Malyshev , PHP internals Content-Type: multipart/alternative; boundary="00000000000077d4c305718aad2f" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1532215317; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=XuynZm8NBPD35aK2gghOu/MkKfOdn9TXDm5xQ6vrBjA=; b=ZN+bpKvB+2AJSP1R8XZu3WTfY84F4Ljwotz6LvXmJ2KHk4rxk+rW5k2QWdu45YW/7BNXmS kcyl7cKfKx4TnJPlO6ji31bWdgi9w/8h4Qp0TTHaFcdA6fHUD37AMqvuFIqgp97n0s9TQM K5Cw/SnofSJS391YCt2NLzs160NAH9s64qfxtCgPwx5kj6Wi0jG0id150GPTDBzB27Jlu0 VF0028rnuWXURDnY2dVQHdw9KPt2BmHlsYc/Wb1G8BPa7KCEeuqiu0g92Xbt7a7NKVtSJ5 8niXU4phFkTXHjqMgeEFTpd+KI9bJ69pUwx8cYZGYOhakla4g0hZMo2LbiSyDA== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] [VOTE] Same Site Cookie RFC From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --00000000000077d4c305718aad2f Content-Type: text/plain; charset="UTF-8" On Sat, Jul 21, 2018 at 11:26 PM Andrey Andreev wrote: > Yes. > > All other "options" are actual *cookie attribute* names, as defined by > the various IETF RFCs, while "lifetime" is just a convenient name used > by PHP. It doesn't correspond to a particular attribute, but instead > the values for the Expires and Max-Age attributes are derived from it. > I believe during discussion I insisted that the parameter be called > "attributes", for this very reason. > Hi, While I do understand your reasoning, I find it extremely unfriendly to the user of the function to ask for one parameter separate from all the others for that reason alone. Also, keep in mind that all this function does is set the `session.cookie_*` ini entries. So all parameters are treated equally. > On another note, I also wanted that pretty much any key/value pair to > be accepted instead of raising an error, for forward compatibility. > I really believe that the user spotting errors like `['expries' => time() + 3600]` faster is more valuable than FC. Regards, Pedro --00000000000077d4c305718aad2f--