Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80778 invoked from network); 29 Mar 2016 11:42:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Mar 2016 11:42:26 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.50 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.50 mail-vk0-f50.google.com Received: from [209.85.213.50] ([209.85.213.50:34928] helo=mail-vk0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/16-37399-F1A6AF65 for ; Tue, 29 Mar 2016 06:42:26 -0500 Received: by mail-vk0-f50.google.com with SMTP id e6so14479551vkh.2 for ; Tue, 29 Mar 2016 04:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OyEyfzsvSgMJcKl25BrZtvD2vs9vMy3dFVUzDUZG+Sc=; b=u7jsrpkapXEveqEIW89jaiz1emsZjd3/ZcXM8AUXtmmR2RerkPAVKXVk1JnAvKkkRp KU0nwGsp7iWiXq/rEAdT+6nfSwBFjKYhyDUwyXw9xkWvQ34IJQ8p+KsVOtqUois9OSHZ FGJ5hKD8h9JuQMGIqjWqCW2cqeeIZVoJ6liMEYEP395RFdroWyrcbwFXiiys3rOhuw36 KpezaeV5DyJcLS9rcHEePnX2NBDHKo1MotIaAKLISnIXIh0o7V4Kc1LG75jkfMM6akxV nzJ6J1QcEoW4moqOpQ3zx/wDvVjmuE2aW763UT6sjlCJuTZEdP+V8iFJhh9FqgQB3XUU EFXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=OyEyfzsvSgMJcKl25BrZtvD2vs9vMy3dFVUzDUZG+Sc=; b=EvbN07viGea+Ml65hNAAwOgI6K4zbehPdi/BooS7iQ3FMN0qky5VOEVvjf3WOQSg3j zqgSlAE1HX+tgonxMgCXb3O5LSHXOrsIOLMQSN0pXyKrfq32GBu4ZDeHFDx+ZHoeZlrg +bNt6fBl8+kNQpI5Q7eum/w69uXqzSXb9hRGeYGLBS2suIOiaxSs0HET0v18S1D+DQXj oLlkD6U5Yg4R2DRYQW5vgYodWy8QUqKycZwcx9/7o5p0GrqGRAV04Tp9LYn2PUD9CPjL xiyWJvCnQD6kz6FMygYdJdiDuxw1uq3zbHMUmEai8p3A3hjn0gV2Vg3HLID8eypZ6p+T aUHg== X-Gm-Message-State: AD7BkJIAe17dH8ZTn2sWr87UpauWwRJq75zm9/VcNnXyqI82CI0CCF+F5jlbosdho14fgH3OWeR77GBLPs3DOQ== X-Received: by 10.31.21.4 with SMTP id 4mr825236vkv.151.1459251741030; Tue, 29 Mar 2016 04:42:21 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.159.40.7 with HTTP; Tue, 29 Mar 2016 04:41:41 -0700 (PDT) In-Reply-To: References: <56F87611.6040602@gmail.com> Date: Tue, 29 Mar 2016 20:41:41 +0900 X-Google-Sender-Auth: 4p_22YzfT5ZVX5_i0fbRgUtn5Ow Message-ID: To: Chris Riley Cc: Stanislav Malyshev , Scott Arciszewski , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Discussion] Precise session data management From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Mon, Mar 28, 2016 at 9:23 PM, Chris Riley wrote: > You are right, perhaps this should be controlled simply by an ini flag: > session https only. > > > On Mon, 28 Mar 2016, 01:09 Stanislav Malyshev, wrote: >> >> Hi! >> >> >> Could we also add HTTPS detection and enable the secure flag by default >> >> when a session is established on an HTTPS endpoint? >> >> You can not see if your connection would be HTTPS or not - connection >> can be terminated on frontend services (like nginx or varnish) that >> handle https and the pass the actual work to backend like fpm or apache >> or whatever it is. In this situation, you may have no information about >> if the connection to the client is HTTPS or not. >> >> And in general, AFAIK there is no standard protocol to establishing this >> kind of info. There are all kinds of ways people do it, but each of them >> is peculiar for specific setup. >> >> I also think it is a mistake to have default behavior controlled by >> external factors beyond server admin's control. Server behavior should >> be predictable. The admin should set it up properly, if the admin is not >> knowledgeable enough to set it up, I don't think we can improve it by >> introducing variable defaults into the mix. It can be made half-automatic by specifying and detecting HTTPS connection flag. I think half-automatic will be mostly the same as current httponly INI setting. It could be confusing for sites that support both HTTP and HTTPS, too. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net