php.net |  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
Votes:2
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: m dot DOT dot wallner at iworks dot DOT dot at
New email:
PHP Version: OS:

 

 [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(apache.org binary)
 - PHP 4.2.2(php.net binary)
 - php.ini

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

Michael

Patches

Pull Requests

History

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!

Michael
 [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 snaps.php.net/win32 downloaded today.
PHP-4.3.0-dev
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 = ?

Michael
 [2002-11-11 10:04 UTC] sniper@php.net
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?

Michael
 [2002-11-11 16:15 UTC] sniper@php.net
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"

and

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.

Michael
 [2002-11-12 17:07 UTC] sniper@php.net
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?

Bye,
Michael
 [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:

ini_set('session.use_cookies','0');
ini_set('session.use_trans_sid','1');

session_start();
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 http://www.php.net/manual/en/function.ini-set.php

Bye,
Michael
 [2003-06-26 12:34 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

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

 [2003-07-01 21:09 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 05:01:27 2024 UTC