note 119631 added to session.upload-progress
| From: | alice at librelamp dot com | Date: | Wed, 20 Jul 2016 23:49:04 +0000 |
| Subject: | note 119631 added to session.upload-progress | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206063@lists.php.net to get a copy of this message | ||
There were two gotchas that got me with implementing this.
The first - if you use session_name() to change the name of sessions, this will not work. I
discovered this by looking at phpinfo() and seeing that is saw a different session name.
At least in Apache, a better way to set the session is in your apache config use
php_value session.name "your custom name"
It goes within the Directory directive, might work in .htaccess - I don't know.
-=-
Secondly - in apache, don't use mod_mpm_prefork.so
That was the problem I had, that's the default in CentOS 7.
The problem is it causes Apache to wait with any additional requests until the upload is finished.
Commenting that module out and using mod_mpm_worker.so instead fixed that problem, and the progress
meter worked.
----
Server IP: 72.52.91.14
Probable Submitter: 97.94.139.106
----
Manual Page -- http://php.net/manual/en/session.upload-progress.php
Edit -- https://master.php.net/note/edit/119631
Del: integrated -- https://master.php.net/note/delete/119631/integrated
Del: useless -- https://master.php.net/note/delete/119631/useless
Del: bad code -- https://master.php.net/note/delete/119631/bad+code
Del: spam -- https://master.php.net/note/delete/119631/spam
Del: non-english -- https://master.php.net/note/delete/119631/non-english
Del: in docs -- https://master.php.net/note/delete/119631/in+docs
Del: other reasons-- https://master.php.net/note/delete/119631
Reject -- https://master.php.net/note/reject/119631
Search -- https://master.php.net/manage/user-notes.php