Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71548 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38548 invoked from network); 25 Jan 2014 07:32:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2014 07:32:55 -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.215.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:40990] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/30-35033-6A863E25 for ; Sat, 25 Jan 2014 02:32:54 -0500 Received: by mail-la0-f52.google.com with SMTP id c6so3193876lan.39 for ; Fri, 24 Jan 2014 23:32:51 -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=eGwD5wqvkRKHxBhHSqTiQn0nNjwcsBisIUv6OkR/Q5w=; b=OweH/S6wEq/X334xjKaFMXoFQOUeyxhQ8c2E8/DxYd+jMi4A2s6V8wadjSvlC6WJIa 5RUQp5wTtEeok1cPMlSCklNHmmHBrZQf7NCH7krka0J0AzU5RjTOBN+HEiIEbV+Zocfv yKbnFCgL4Cs9LCmA2AOhNtMOOTM0FaSL/AypAXuZpY67n4NGHXTNCqaz2LyB68XznlFx PyzZWBWpUhXnjYVero1Z50oxlKxvQKFfp5mLso1ELxlo3bXvs4jt2XcVj96KvZKXaNG1 LePgkA1sj1cLI8r6TEVyZs3efrzhM6NuECFyxePwwAsMk2vswF0DTE7ZXm+E3S4hzcLw sBFw== X-Received: by 10.152.22.201 with SMTP id g9mr11523378laf.27.1390635171038; Fri, 24 Jan 2014 23:32:51 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.132.134 with HTTP; Fri, 24 Jan 2014 23:32:10 -0800 (PST) In-Reply-To: References: <52E319F2.8080705@sugarcrm.com> Date: Sat, 25 Jan 2014 16:32:10 +0900 X-Google-Sender-Auth: xE1veZexAp541vYXydp_ftJLWjg Message-ID: To: Andrey Andreev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0158c30861cc2a04f0c67b96 Subject: Re: [PHP-DEV] Session IP address matching From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e0158c30861cc2a04f0c67b96 Content-Type: text/plain; charset=UTF-8 Hi Andrey, On Sat, Jan 25, 2014 at 12:09 PM, Andrey Andreev wrote: > Still, that is not optimal. The desired effect is to call the session file > something like: > > __ > > I can't think of a way of making that happen, so I guess a work-around > would be to do: > I've just written session_create_id(string $prefix) today. You can do that easily and securely with session_create_id(). It would be in 5.6. You may check easily with user script whatever prefix means. NOTE: No one should not expose sensitive data in prefix! Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e0158c30861cc2a04f0c67b96--