Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100322 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98202 invoked from network); 28 Aug 2017 19:53:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2017 19:53:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=f.bosch@genkgo.nl; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=f.bosch@genkgo.nl; sender-id=pass Received-SPF: pass (pb1.pair.com: domain genkgo.nl designates 46.21.156.38 as permitted sender) X-PHP-List-Original-Sender: f.bosch@genkgo.nl X-Host-Fingerprint: 46.21.156.38 mail.genkgo.net Received: from [46.21.156.38] ([46.21.156.38:48359] helo=mail.genkgo.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/10-34801-5A474A95 for ; Mon, 28 Aug 2017 15:53:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=genkgo.nl; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References :To:Subject:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8ZtlomMlXus35WT7ObbhRPaz9mRZDUWsdH+bWxzQ38Q=; b=U2T0wR1TEfkiFgh//9DfjsZ2a0 o5INWvEkOlcwfJDYRTx0lr5ADRgx+XC0e/996mSuuYNc+1W1vTcIl6t8JQivFcNgi0ea93IGk0I2b nbeywStt4CjrMRHn0nURTwJSMcakvUxpAosOLLnmpmmcphDbg7pwjMRs4nQFYliPZoREBhv3Md+IC sDikllMi4VUhbQHdzPNXq4SNhy3n0CLolWQoU0HKG6uq28Oqqaxj3P4eH0xIDL+yb9zGHRiVwPeMr 7OaG65Aw1W88I7szmrZh48vjI7xR0XiGd5y6OJ7VGasTemrvKYH1X/V7x3wekCUnafTssAGYTsYiW 5PiDpd9A==; Received: from [77.172.138.133] (helo=[192.168.1.70]) by mail.genkgo.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1dmQ5q-0006Pm-7J; Mon, 28 Aug 2017 21:53:06 +0200 To: Stanislav Malyshev , internals@lists.php.net References: <1abd260d-ebc4-a062-3381-72485946e8bc@gmail.com> Message-ID: Date: Mon, 28 Aug 2017 21:53:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1abd260d-ebc4-a062-3381-72485946e8bc@gmail.com> Content-Type: multipart/alternative; boundary="------------5A3B7DD2333FCF61B0F29A2E" Content-Language: en-US X-Antivirus-Scanner: Clean mail though you should still use an Antivirus Subject: Re: [PHP-DEV] [VOTE] Same Site Cookie RFC From: f.bosch@genkgo.nl (Frederik Bosch) --------------5A3B7DD2333FCF61B0F29A2E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Stanislav, My reasoning for this is as follows. 1. The session_set_cookie_params function requires a lifetime parameter at the moment. 2. To enforce that lifetime stays required I did not want to make it required within the optional array. That would make that optional array not optional anymore, and even have a required key. I don't think that is a good idea. 3. To prevent that the array of options is different between the three functions (session_set_cookie_params, setcookie, setrawcookie), I chose to exclude lifetime from the array of options and include it in the list of arguments. Hence, I chose a consistent and logical API over the three functions together rather than having logical ones per function. Hope it makes sense. Best, Frederik On 28-08-17 21:06, Stanislav Malyshev wrote: > Hi! > >> additional argument to these three functions. The second implementation >> suggestion is to allow an array of options in which all the cookie >> options will be moved into. More details are to be found in the RFC. > Something not clear to me on the second one - why lifetime/expiration is > a separate parameter while all others are part of $options? > --------------5A3B7DD2333FCF61B0F29A2E--