Bug #71289 [Opn]: Using session_name() prevents session_progress features from working
| From: | pfenderd at bellsouth dot net | Date: | Wed, 06 Jan 2016 22:04:57 +0000 |
| Subject: | Bug #71289 [Opn]: Using session_name() prevents session_progress features from working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198460@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71289&edit=1
ID: 71289
User updated by: pfenderd at bellsouth dot net
Reported by: pfenderd at bellsouth dot net
Summary: Using session_name() prevents session_progress
features from working
Status: Open
Type: Bug
Package: Session related
Operating System: Windows 7
PHP Version: 7.0.1
Block user comment: N
Private report: N
New Comment:
The problem is a little bit more complicated than first thought. When a browser is first opened and
a session started using session_name() before session_start() the problem will continue to occur.
However, if a session is opened without using session_name() just once, then thereafter the use of
session_name() will not cause a problem. This is repeatable with IE 11, Firefox 43.0.4, Chrome
47.0.2526.106 and Opera 34.0.2036.31.
Test using session_name(): http://dayspeaknet.djpnet.dyndns.org/upload_sermons/upx/form1.php
Test without using session_name():
http://dayspeaknet.djpnet.dyndns.org/upload_sermons/upx/form1.php?sn=0
The only difference between these two test URLs is the use of session_name() or not.
Closing the browser and opening the browser again creates the problem situation.
Previous Comments:
------------------------------------------------------------------------
[2016-01-05 18:19:16] pfenderd at bellsouth dot net
When I mentioned session_progress, I was referring to the session.upload_progress feature.
------------------------------------------------------------------------
[2016-01-05 17:08:49] pfenderd at bellsouth dot net
Description:
------------
Using session_name() to specify a name immediately before session_start() causes the
session_progress feature to indicate that an upload has completed immediately even though the file
is still being sent. In my test case, the only difference between a working version and the failed
version is the used of session_name().
Without using session_name(), the session_progress feature works very well.
I currently use session_name() to differentiate sessions when using the same browser to access
different web pages in different tabs that show data from different websites on the same server.
This feature works well except for the session_progress feature.
Test script:
---------------
$session_name_str = "upload_session";
session_name($session_name_str);
session_start();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71289&edit=1