Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91978 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92477 invoked from network); 28 Mar 2016 12:23:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Mar 2016 12:23:33 -0000 Authentication-Results: pb1.pair.com header.from=t.carnage@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=t.carnage@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.174 as permitted sender) X-PHP-List-Original-Sender: t.carnage@gmail.com X-Host-Fingerprint: 209.85.217.174 mail-lb0-f174.google.com Received: from [209.85.217.174] ([209.85.217.174:35356] helo=mail-lb0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/00-26367-34229F65 for ; Mon, 28 Mar 2016 07:23:31 -0500 Received: by mail-lb0-f174.google.com with SMTP id bc4so80428672lbc.2 for ; Mon, 28 Mar 2016 05:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Or+LdVEZsQUWdk93VUSRRTvQ6B1cA6/3UosbSnE2ADE=; b=Sz14eYXojgaesS6xlDqln57O+72fcKP+mPHHj0w7pwTwl2AvoYXDLtVZFdgsYSVTfU 8pJYbzAaSmtL0eKNwx1JizPgHz/wj/OmeTCUuwWGAuG4U2W4gtcOIH9xiBVivZX4f/m9 qB/Ug3OJs7yBSChGEueWOmoNxio/F1kD5Fgvj463uORon1kHqfRpmD7Zu0TVzOwJyDy9 Hd2BcX+fToYWh12UsZRaB/cU3Gc9VxCKRXohHVYMnBd7+RPDDEryAImiXpAZTXjt/WJL w16BozlfbkpAYEZFzifMSLcJCBOMBa5H9Kj1cCdW5TI0TaE1qd1atZXxZb97OjET/iEp 86hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Or+LdVEZsQUWdk93VUSRRTvQ6B1cA6/3UosbSnE2ADE=; b=VcwvW4PEZUE0PgnPM2yJ1FNTfF1TGb/yDx+1MlvWsl9TEGXb5tuQZ6uPBXHZ2CnzW2 c3QjEHlK+wvreG1fTL+KGwmaFov74AfSA3PuVGEjlBDEMd12/vD9IXWwtVmP5zKYpp2b NVa0/vATGHtKLB4QCugDb5LIpI1wVHMuKFDgEU1UssfG5L1Qa2LoUNrCKdODxrDdsa0M 5+s+UGTToqd0VmmGaBXfp84Z6UsVxgyBnU7n39k73ZrfTdWi+h/Zmwxl237cYYhDzPMX wpAb7lGUERibbJApGGSQROO5EQsv4HEqUTV1Ddqube8vCSmBUCx6VFI9PQT5N7T3DniL OJsw== X-Gm-Message-State: AD7BkJIq/F7dxEZdxDyGjmzh8OxOOW4I3oFF1QTig3PejFbymp6SICyKXZqdhFEpNX6ty4xhnGjzvgJvd1yBKA== X-Received: by 10.112.135.230 with SMTP id pv6mr9878252lbb.68.1459167808319; Mon, 28 Mar 2016 05:23:28 -0700 (PDT) MIME-Version: 1.0 References: <56F87611.6040602@gmail.com> In-Reply-To: <56F87611.6040602@gmail.com> Date: Mon, 28 Mar 2016 12:23:18 +0000 Message-ID: To: Stanislav Malyshev , Scott Arciszewski Cc: Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0117716fe1f69b052f1afad3 Subject: Re: [PHP-DEV] [RFC][Discussion] Precise session data management From: t.carnage@gmail.com (Chris Riley) --089e0117716fe1f69b052f1afad3 Content-Type: text/plain; charset=UTF-8 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. > -- > Stas Malyshev > smalyshev@gmail.com > --089e0117716fe1f69b052f1afad3--