|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19122 session.use_trans_sid doesn't take effect if zlib_output_compression is enabled
Submitted: 2002-08-27 10:13 UTC Modified: 2003-07-01 21:09 UTC
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: m dot DOT dot wallner at iworks dot DOT dot at Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.3.0 and earlier OS: Win 2k and Debian 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
40 - 4 = ?
Subscribe to this entry?

 [2002-08-27 10:13 UTC] m dot DOT dot wallner at iworks dot DOT dot at
If you use zlib's output compression, php doesn't autoappend the SID anymore (used session.auto_start)

Testet on:

- Win2k
 - Apache 2.0.39( binary)
 - PHP 4.2.2( binary)
 - php.ini

- Debian 3
 - Apache 1.3.26
 - PHP 4.2.2
 - .htaccess



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-27 17:58 UTC] m dot DOT dot wallner at iworks dot DOT dot at
I forgot that both run as module!

 [2002-11-11 10:02 UTC] m dot DOT dot wallner at iworks dot DOT dot at
Changed Status to OPEN.

I've tried the latest from downloaded today.
PHP API 20020918 
PHP Extension 20020429 
Zend Extension 20021010

If i use zlib.output_comression = On, browsers are showing me just binary data.
But there has come a new directive and i don't know what to set there -> zlib.output_handler = ?

 [2002-11-11 10:04 UTC]
Don't use it if your browser doesn't support it.

 [2002-11-11 10:19 UTC] m dot wallner at iworks dot at
What do you mean, "if my browser doesn't support it"?

Mozilla and IE did support it.

"output_handler = ob_gzhandler" works fine with these browsers.
"zlib.output_compression = On" worked fine with these browsers with PHP 4.2, except trans_sid didn't work.

And now zlib's output-compression is not working anymore.

Why is that Bogus?

 [2002-11-11 16:15 UTC]
You should have mentioned that in the first place..
(that it worked before)

Are you by any chance trying to use both methods at the same time ?

 [2002-11-12 13:29 UTC] m dot wallner at iworks dot at
Sorry, my english is not that good.

> Are you by any chance trying to use 
> both methods at the same time ?

I'm not using

output_handler = "ob_gzhandler"


zlib.output_compression = On

at the same time, if you ment this.

"ob_gzhandler" still works fine, even with session.use_trans_sid = 1, but zlib.output_compression always serves trash in this version.

 [2002-11-12 17:07 UTC]
So it might be some bug then.

 [2002-12-29 06:38 UTC] m dot DOT dot wallner at iworks dot DOT dot at
So here is my conclusion:

I've just tried PHP 4.3.0 Final today.

zlib's compression works fine now, and
session.use_trans_sid won't work if and
ONLY IF you use session.auto_start.

trans_sid works fine if you start the 
session manually by calling session_start().

Don't know if this Bug should be closed?

 [2003-01-01 14:07 UTC] schleinzer at gmx dot net
If I try to use trans_sid with php 4.3.0 final it doenst work. ZLib output compression is off. The test I use is as following:


print '<a href=bug.php>Bug</a>';

There is no session id appended to that link. 4.2.3 worked fine. Most settings are the same as in the php.ini.recommended  comming with 4.3.0 final.
 [2003-01-07 10:27 UTC] m dot DOT dot wallner at iworks dot DOT dot at
You AFAIK can't set session.use_trans_sid with ini_set, because this param is only writeable by PHP_INI_SYSTEM or PHP_INI_PERDIR directive -> you can read this at

 [2003-06-26 12:34 UTC]
Please try using this CVS snapshot:
For Windows:

This might have changed a bit, see bug #24315 (seems like same issue?)

 [2003-07-01 21:09 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 03:03:39 2023 UTC