Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40339 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28355 invoked from network); 8 Sep 2008 11:20:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2008 11:20:00 -0000 Authentication-Results: pb1.pair.com header.from=arnaud.lb@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arnaud.lb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arnaud.lb@gmail.com X-Host-Fingerprint: 74.125.44.29 yx-out-2324.google.com Received: from [74.125.44.29] ([74.125.44.29:49495] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/DD-58883-F5A05C84 for ; Mon, 08 Sep 2008 07:20:00 -0400 Received: by yx-out-2324.google.com with SMTP id 3so824102yxj.83 for ; Mon, 08 Sep 2008 04:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=D9nwwXmKn1j6Nv8S+FSB7OChbOW14TnvEi3na9W2sAE=; b=AoaOKGcCmGB7tsZg+d2+lC85NKQyLGQMQY0p9HfI0gP3C56Gui3J3NzJA3V1ZANtUG LWRYRYCnZVpkj8r/v7YlTJQMfqu1NjWqCo2QDodFUDKEIPIuPKLRkDHxpu2gN4his1eJ j5MivfIkNE8CQTLc/EQtT85WA+LWMqv+vgHpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=R/x8lg3/fcO2kUiu/2MMlagrRPBECepBBLzyLTmExyJy5XWLu0Zxysqycx8MOEF5i4 ObagyUtPP4jsRuekC+XZIG+8D99Z0yePovjQ5EJDos68TWros85Z6F4HZ4t44ODLgPN/ ZJqCeq1YCyi7nw05fkmNY8+unjFJA76UMDcEo= Received: by 10.103.225.2 with SMTP id c2mr10115941mur.93.1220872796751; Mon, 08 Sep 2008 04:19:56 -0700 (PDT) Received: from 207-177-41-213.getmyip.com ( [213.41.177.207]) by mx.google.com with ESMTPS id e10sm5890573muf.14.2008.09.08.04.19.54 (version=SSLv3 cipher=RC4-MD5); Mon, 08 Sep 2008 04:19:55 -0700 (PDT) To: "Martin Jansen" Date: Mon, 8 Sep 2008 13:19:53 +0200 User-Agent: KMail/1.10.0 (Linux/2.6.26-1-amd64; KDE/4.1.0; x86_64; ; ) Cc: "php internals" References: <200809081218.02471.arnaud.lb@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200809081319.53187.arnaud.lb@gmail.com> Subject: Re: [PHP-DEV] [PATCH][HEAD] Upload progress in sessions From: arnaud.lb@gmail.com (Arnaud Le Blanc) Hi, On Monday 08 September 2008 13:06:50 Martin Jansen wrote: > On Mon, Sep 8, 2008 at 12:18 PM, Arnaud Le Blanc wrote: > > The patch allows to store upload progress informations in session variables. > > These informations can be retrieved by an other script while the upload is > > still in progress, allowing to provide feedback to the user. > > Implementing this in the sessions extension makes this feature available to > > every one. > > Using the session extension for this purpose also allows to use the different > > storage backends available. > > I have written a RFC/documentation here: > > http://wiki.php.net/rfc/session_upload_progress > > Would it be possible to use something like > $_SESSION['foo']['upload_progress_123'] instead of storing the > information in the top-level session space? I can imagine there being > frameworks and such that put their session stuff in some special > container like $_SESSION['foo'] so that their session data does not > interfere with the data of other components or the application that > makes use of the framework. Yes, this can be done. The prefix setting ("upload_progress_" by default) was added for that purpose, but it may be possible to use $_SESSION[prefix][name]. > > Martin > Regards, Arnaud