#29333 [Opn]: output_buffering + trans_sess_id can corrupt session
| From: | alan_k@php.net | Date: | Thu, 22 Jul 2004 15:31:00 +0000 |
| Subject: | #29333 [Opn]: output_buffering + trans_sess_id can corrupt session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63354@lists.php.net to get a copy of this message | ||
ID: 29333
Updated by: alan_k@php.net
Reported By: alan at akbkhome dot com
Status: Open
Bug Type: Output Control
Operating System: linux debian & redhat
PHP Version: 4.3.8
New Comment:
Note: this code worked perfectly on 4.3.1
Previous Comments:
------------------------------------------------------------------------
[2004-07-22 17:26:04] alan at akbkhome dot com
Description:
------------
if output_buffering is set to 4096 and trans_sess_id is used, the
output may be broken:
In the reproduce example, the trans_sess_id writes
<a href="/translators/index.php/calendar/view"
?phpsessid="fa562d5bb14df890e6db68627ea76442">
Reproduce code:
---------------
http://www.akbkhome.com/svn/test_trans/.htaccess
http://www.akbkhome.com/svn/test_trans/test.php
http://www.akbkhome.com/svn/test_trans/home.html.en.php
htaccess includes:
php_value session.use_cookies 0
php_value session.use_trans_sid 1
php_value output_buffering 4098
test.php just sets up enough variables to render the HTML
home.html.en.php is just a HTML which happens to have the url link in
the right place to reproduce the bug.
Expected result:
----------------
on the "View your personal calendar":
<a
href="/translators/index.php/calendar/view?phpsessid=fa562d5bb14df890e6db68627ea76442">
Actual result:
--------------
on the "View your personal calendar":
<a href="/translators/index.php/calendar/view"
?phpsessid="fa562d5bb14df890e6db68627ea76442">
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29333&edit=1