php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29584 session id not added if gzencode is used
Submitted: 2004-08-09 13:37 UTC Modified: 2004-08-09 16:18 UTC
From: mail dot spam at gmx dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.7 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mail dot spam at gmx dot net
New email:
PHP Version: OS:

 

 [2004-08-09 13:37 UTC] mail dot spam at gmx dot net
Description:
------------
if i use gzencode() to compress the output being sent to the user's browser there get's no session-id added to links.

use_only_cookies is set to off and use_trans_sid is set to On.

Reproduce code:
---------------
working:
<?php
session_start();
echo '<a href="dummy.php">Test</a>';
?>


_not_ working:
<?php
session_start();
header('Content-Encoding: gzip');
echo gzencode('<a href="dummy.php">Test</a>');
?>

Expected result:
----------------
i assumed to see both links with session-id added.

Actual result:
--------------
working:
<a href="dummy.php?PHPSESSID=074c2a090a20e5bb3d59948a39da5e87">Test</a>


_not_ working:
<a href="dummy.php">Test</a>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-09 13:41 UTC] derick@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

If you compress it, we can\'t match on links anymore.
 [2004-08-09 16:18 UTC] mail dot spam at gmx dot net
i see no sense in having the user to choose whether to have the session-id added or compressing the output sent to the browser and i wasn't able to find this explained in the documentation. would you please be so kind and point me to the right direction?

why does gzencode not invoke the transparent adding of the session-id?


thanks in advance
 [2004-08-19 08:56 UTC] php-is-cool at gmx dot net
Sorry for creating a new report but the author of this report added a comment 10 days ago and there's no reply so I thought you don't answer to reports being bogus.

Here's my question:

-------------
if I send output to the browser using gzcompress the session-id does not
get added.

I know the reason for this: gzcompress returns a compressed binary
string that can't be searched for relative urls.

But i don't know the reason why gzcompress does not invoke the
url-rewriting before actually starting with compressing the data?

Wouldn't that be a good thing?

thanks in advance
-------------
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 00:01:35 2024 UTC