Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12650 invoked from network); 17 Mar 2014 13:57:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2014 13:57:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.160.173 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.160.173 mail-yk0-f173.google.com Received: from [209.85.160.173] ([209.85.160.173:58214] helo=mail-yk0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/95-17561-04FF6235 for ; Mon, 17 Mar 2014 08:57:22 -0500 Received: by mail-yk0-f173.google.com with SMTP id 10so15051638ykt.4 for ; Mon, 17 Mar 2014 06:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=USbLwJq8gYpEANplFISAjFT8ukw9ORHvY2QIOxQBg9E=; b=c8AF179kKSS4GIJLXvH/5I13lTckpyUWEd2EhxPWka/fiu7eH87mjHOFi3lPr+o9oL o3VQYuw9tob4eDj9I3arEr9dxxhFP4x5e6HovBZVStSAEir7bVjfpJmWeiHyAPejUC9O aGS5ftfyCQXFDRnXYxxzX5DS/OZUSc5/E7UiE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=USbLwJq8gYpEANplFISAjFT8ukw9ORHvY2QIOxQBg9E=; b=HL8HeFN1e0jtlcH4x8FJ/UBrZAYci1v+mmTL8eD9cilZYuboyneQaTE3MrZRp6tJU2 h++G/IWjWdXKYBZpwJXtfrCcvLWtJOUKBPKSSrvzLKCpbFVpfKsNIeR44IYc0LYw5g0L cNVnAwAWxVboiTw/emt7x98WdAhQuZvehujirleQKIYTdJr86bn80+DA8peoyZEYc6Cj 62Y68TImfqiF4cD84hXZXHwEybjuP+JFo48rUkN+DQRJbVcatJ2WFvWn1jE5Ez2NQFSr zl/DCVykS5egbbory47oUaIEiPj7GWtBhs9U8tbnjJDSVJ7imPlHTFdPXxrxeFNxKDu9 e/JQ== X-Gm-Message-State: ALoCoQnFDmOjzKYvKwy9HoScOGUa/6qn9XGJVMe3J5cTcvZsi/N/rAxPZp6HTm2HB3ZdaXrzA1fK MIME-Version: 1.0 X-Received: by 10.236.71.100 with SMTP id q64mr1935050yhd.133.1395064637875; Mon, 17 Mar 2014 06:57:17 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Mon, 17 Mar 2014 06:57:17 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Mar 2014 15:57:17 +0200 Message-ID: To: Leigh Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Session: deprecating create_sid() method and add createSid()? From: narf@devilix.net (Andrey Andreev) HI, On Mon, Mar 17, 2014 at 3:22 PM, Leigh wrote: > > On 17 March 2014 10:23, Andrey Andreev wrote: >> >> Hi Yasuo, >> >> There's no SessionHandler::create_sid() or >> SessionHandlerInterface::create_sid() documented (see your own link to >> the docs) ... since when is this available? >> >> I'm not sure if exposing it is a good idea anyway, why is it necessary? >> > > > It was added in 5.5.1 - The PR was made 2 years ago by myself: > https://github.com/php/php-src/pull/109 > > It's not documented because I'm lazy, (it's one of those TODO items that has > become permanent), but I personally use it. The underlying method on the > session interface has been there for a long time (10 years might even be > accurate), but for some unknown reason, it was not exposed to userland when > all of the other methods were. > > It is necessary for custom session handler classes because without it calls > to session_regenerate_id() do not inform the session handler about the > change of session id. The presence of this method allows you to capture > session id regeneration, and update files, databases, etc. as necessary, and > also allows you to fully customise the actual session id token that is used. > Custom prefixes, body content, encoding charset, etc. I see ... that (and the PR discussion) answers all of my questions, thanks. Btw, I could take the docs out of your TODO list, as long as I can figure out of all repos, which one do I need to fork so I can push documentation additions ... the web interface sucks. With that said, +1 for changing it to SessionHandler::createSid(). Cheers, Andrey.