|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-29 18:04 UTC] mike@php.net
[2006-07-04 15:20 UTC] oriol dot gual at gmail dot com
[2006-07-05 16:34 UTC] oriol dot gual at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 17:00:01 2025 UTC |
Description: ------------ When zlib.output_compression is set to On, PHP always starts a new session. I've looked at the headers, and PHP is always sending the cookie for the session id. The same happens using trans sid on, or manually appending the session id to the link. If zlib.output_compression is turned Off it's working ok. Also, if I use ob_start("ob_gzhandler"); first and then ob_end_flush(); at the end, everything works as expected. Reproduce code: --------------- <?php session_start(); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } echo $_SESSION['count']; echo " <a href=\"test.php">Refresh</a>"; ?> Expected result: ---------------- 0, 1, 2, 3 , 4... Actual result: -------------- 0, 0, 0, 0, 0...