Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97514 invoked from network); 2 Feb 2014 00:07:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2014 00:07:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.48 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.48 mail-la0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:51599] helo=mail-la0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/CB-30967-94C8DE25 for ; Sat, 01 Feb 2014 19:07:38 -0500 Received: by mail-la0-f48.google.com with SMTP id mc6so4484286lab.35 for ; Sat, 01 Feb 2014 16:07:34 -0800 (PST) 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:content-type; bh=K3qdy8i+mfJ6xKNZlNgAZQ1TT8L6GHtysOyh00LFNik=; b=SMp86XDPp1atpGTuRSCcXPKO76eMNAR1JLt6X697uHeUPHamZ89fop/Sg4Y/EQMqKn wFNF+O19lkXrMv9r6GBMqdVMsoCLy8g0UqMj3TQ5DYSEeYRgKX+vwpV5WSLH4xZJmgUR BDA45pjHn1h7nHOteOFFYKvIH3ebVhfVwSErx+5Di0IbsWCXYTguCQnjK0luMwdPIlec b6cw1uLTI2SON3tdoGn69JNW9Xhs3Xm6QjfeGdIsC0/IrHAL8vYnU13rAMK2oocFZfq9 VCkMixEaNONsycsivMA1Sb6O0SNu8YlQHzwZTSB4OhFfoqNr1ijpPumrWa0bdUNF9Ufb wNrw== X-Received: by 10.152.26.135 with SMTP id l7mr220570lag.43.1391299654522; Sat, 01 Feb 2014 16:07:34 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Sat, 1 Feb 2014 16:06:54 -0800 (PST) In-Reply-To: References: <52ED7AC8.6080703@sugarcrm.com> Date: Sun, 2 Feb 2014 09:06:54 +0900 X-Google-Sender-Auth: ChMYJK2grCDSxOymSlx2j-N2Z54 Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0160c2beaf1a2b04f161318a Subject: Re: [PHP-DEV] [RFC] Secure Session Module Options by Default From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e0160c2beaf1a2b04f161318a Content-Type: text/plain; charset=UTF-8 Hi Stas, On Sun, Feb 2, 2014 at 8:59 AM, Yasuo Ohgaki wrote: > To set user defined session ID, user has to do > > ini_set('session.use_strict_mode', FALSE); > session_id(session_create_id('SOME-USEFUL-PREFIX')); > > With this change, user could do > > session_id(session_create_id('SOME-USEFUL-PREFIX')); > > regardless of INI settings. session_id() is changed to modify > 'session.use_strict_mode' INI to off internally. This change is not > mandatory as user may change INI by themselves. It's for convenience. I > don't mind at all withdrawing this change from the RFC. > Users might be setting unsafe session ID using session_id(), adding optional $force_id parameter to session_id() is better. $force_id = TRUE; session_id(session_create_id('SOME-USEFUL-PREFIX'), $force_id); It may prevent setting unsafe ID by mistake. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e0160c2beaf1a2b04f161318a--