Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99887 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19523 invoked from network); 18 Jul 2017 10:08:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2017 10:08:18 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.83.51 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.83.51 mail-pg0-f51.google.com Received: from [74.125.83.51] ([74.125.83.51:36792] helo=mail-pg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/E3-02884-E0EDD695 for ; Tue, 18 Jul 2017 06:08:18 -0400 Received: by mail-pg0-f51.google.com with SMTP id u5so10059493pgq.3 for ; Tue, 18 Jul 2017 03:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GG5UXvaPdsov4TLIqTFZFL1fulvMpcBKhq3WD0k1ohM=; b=ko3cimT8aEktIi5PMJ5Oz99+QFPlsPgLBZKr5ncINRS+WnktAtWUqxXUBKwD7DdYTX 8BrB6dJ606JdtRC8obEJXi7Q9aRcswk88fpelDlXJ0nElwlsO0LlpBtWIx/n9k6Wd40V 36uUuANnzJJZL7midTL2IUFxS0roJQ71vowjvjTncZd6ryAGPWgziAHhoUbQxt07vadg WCl9LoQbGbxD34x+BpZjMsUrBW1BOzI0/1oIFzhYggLpnmXTf87D6NkAXdFHVyu8Oqy2 EUEiomXW5/wPsbHyX0890BP9hCVuCUkiFp2ZXHQqTUDv7/EuO0Mao2MUImaVwAj4zh2b mBnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GG5UXvaPdsov4TLIqTFZFL1fulvMpcBKhq3WD0k1ohM=; b=n/0G47xb4L1bSWB4imuupYzzHi4lHU391FvzhvSgiFVH+4zW0qt+N7nvh5UJ4IIf1t BviMT7p6YP+URikgZCkopgsRFGWImoONW93hnf7cNxGvqCN/NQ5nB7EwaHUhNTObfh3l 6dKvvJc2CWBF2ydBKGuFsf6sRsve2bUpd9iatc+E4Aze7hHA7EceNknuAtf4pic0LV5f b7LwRA9IHTPKMJNe39yiMS4gOx/8XjKkRZ8OlV+DBSw4EoqXM2GMToT7SH+slgP76El2 1l/yP7yn+5FwLIAPPvMQTWz12XaDEoNKKcnrA9D9iT9YjRSK6VfGDXRTKvdxSdbRaZGq 7xag== X-Gm-Message-State: AIVw113ypobjGvlxRsJBHj7UwzBL+cvJoDtuhtUZQ50FNfq3nj4xiiKv q7f6OuWPt/dlQTDzIYqLei5W56tSsBGV X-Received: by 10.101.87.140 with SMTP id b12mr867815pgr.174.1500372491350; Tue, 18 Jul 2017 03:08:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.186.236 with HTTP; Tue, 18 Jul 2017 03:08:10 -0700 (PDT) X-Originating-IP: [81.48.171.204] In-Reply-To: <64.32.02884.7983D695@pb1.pair.com> References: <64.32.02884.7983D695@pb1.pair.com> Date: Tue, 18 Jul 2017 12:08:10 +0200 Message-ID: To: Andreas Treichel Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] http_cookie_set and http_cookie_remove From: danack@basereality.com (Dan Ackroyd) On 18 July 2017 at 00:22, Andreas Treichel wrote: > Hi, > > i want some feedback, about the following idea before i write a rfc. > > ... Most of them > are optional and extensions (e.g. same-site) make it even more messy. Two thoughts: i) Cookie functions are easily done in userland. ii) Adding more stuff to an already complicated thing isn't the way to make it simple. Or, to repeat myself: http://news.php.net/php.internals/90940 > The problem is that you're trying to build on a foundation of sand. > The session handling works but is incredibly fragile. > > Or to put it more colloquially this is a "how to get to Dublin > problem". To get to having a more secure and reliable session > handling, we need to start from some where else, not just keep > building on top of the current session handler code. > > To me, there are two good ways to proceed: > > i) Develop a new session extension, that doesn't depend on magic > behaviour of globals and leave the current session handler as it is. > The new session extension could be shipped as a 'work in progress' when > it's good enough, before PHP 8. Then when it's stable, we could figure > out how to transition users from the old extension. > ii) Develop a session handler in userland code only. PHP is powerful > enough to support this. Although obviously there are big benefits to > shipping a session handler with PHP, I don't see any need for it to be > done internally other than we don't currently have a way of shipping > userland code with an extension. I'm hoping that before PHP 8, the > ability to ship PHP code as part of extensions would be in place. cheers Dan Ack