php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64075 when the session name is not PHPSESSID, upload progress informations are not pr
Submitted: 2013-01-25 17:04 UTC Modified: 2013-06-27 15:57 UTC
Votes:4
Avg. Score:4.2 ± 0.4
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: pmaes at nextoo dot fr Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.4.11 OS: OSX
Private report: No CVE-ID: None
 [2013-01-25 17:04 UTC] pmaes at nextoo dot fr
Description:
------------
I test upload progress for my app (under symfony 1.4), and it doesn't work. With PHP without any framework it works.

I compared http request header and the only difference is the cookie.

Into my symfony app, i setted session_name=PHPSESSID and the progress informations was into $_SESSION

So, when the session name is not PHPSESSID, upload progress informations are not present.



Test script:
---------------
http://pastebin.com/FY02EfDA

try with index.php?session_name=test
result: it don't work

remove the cookie after the test

try with index.php or index.php?session_name=PHPSESSID
result: it works


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-20 20:24 UTC] raz dot atoth at gmail dot com
For what it's worth, i'm experiencing the same issue with v. 5.4.13 on Linux Mint.
The session upload progress does not appear to work if function 'session_name' is used to set the name of the session cookie,
 [2013-06-27 15:57 UTC] arpad@php.net
Because uploads are processed before your script executes, session_name('foo') or ini_set('session.name', 'foo') won't affect them and PHP will use whatever's been defined in your php.ini etc. the default being PHPSESSID.

Setting session.name in your php.ini or vhost config etc. works fine.
 [2013-06-27 15:57 UTC] arpad@php.net
-Status: Open +Status: Not a bug
 [2013-06-27 15:57 UTC] arpad@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 24 18:01:29 2024 UTC