|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20037 flush not working after setting session id
Submitted: 2002-10-23 05:40 UTC Modified: 2002-10-23 18:36 UTC
From: bob at hostelworld dot com Assigned:
Status: Wont fix Package: Output Control
PHP Version: 4.2.2 OS: Solaris 8
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.
Block user comment
Status: Assign to:
Bug Type:
From: bob at hostelworld dot com
New email:
PHP Version: OS:


 [2002-10-23 05:40 UTC] bob at hostelworld dot com
Seems that after setting the session id, a flush isnt working.
If you supply a PHPSESSID, then it doesnt output anything until the end of the script, without the PHPSESSID, then it does what you would expect, output one stamp, then another after 10 seconds.

  if ( $_GET["PHPSESSID"] ) {
  for($i=0; $i<300; $i++ ) {
    echo "\n";
  echo gmdate("H:i:s");
  echo "<BR>";
  echo gmdate("H:i:s");
  echo "<BR>";



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-23 18:36 UTC]
You have mistake in your script, but it does not matter.

Flushing will not work when buffer (trans sid, zlib.compression, ob_gzhandler, mb_output_handler, etc) is used.

And it will not be fixed, even if I would like to ;)

Don't try to flush.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 00:01:28 2024 UTC