Re: [PATCH][HEAD] Upload progress in sessions

From: Date: Mon, 08 Sep 2008 11:19:53 +0000
Subject: Re: [PATCH][HEAD] Upload progress in sessions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-40339@lists.php.net to get a copy of this message
Hi, On Monday 08 September 2008 13:06:50 Martin Jansen wrote: > On Mon, Sep 8, 2008 at 12:18 PM, Arnaud Le Blanc <arnaud.lb@gmail.com> 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

« previous php.internals (#40339) next »