php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7571 Document contains no data with session
Submitted: 2000-11-01 12:50 UTC Modified: 2000-11-27 08:49 UTC
From: jannis at gmx dot it Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: Linux
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: jannis at gmx dot it
New email:
PHP Version: OS:

 

 [2000-11-01 12:50 UTC] jannis at gmx dot it
I have a frame that refreshes every 10 seconds. The called script does a session_start(), and displays a log-out button when there is a valid session.
After a random number of refreshes, netscape outputs "Document contains no data" instead of the correct content, even though everything is fine with the script. When i reload that specific frame, it works again.
My environment is php 4.0.3pl1 with apache 1.3.12, but a couple of friends of mine ran over that bug too on other, different environments...

Here is the script:
==========================================================
<?$nodebug=1;$need_db=1;include "./lib/config.php";
session_start(); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title></title>
</head>
<link rel=stylesheet type="text/css" href="./lib/style.css">
<meta http-equiv="refresh" content="15; URL=topbar.php?PHPSESSID=<?if (isset($PHPSESSID)&&$PHPSESSID!="") echo $PHPSESSID;?>">
<body bgcolor="#ffffff" text="#000000">
    <span class="f-8">
        <div align="right">
<? if (isset($PHPSESSID) && $PHPSESSID != "" && $REMOTE_ADDR == $ip) {?>
      logged in<br>
      <a href="logout.php" target="_top">log out</a>
<?}?>
</div>
</span>
</body>
</html>
==========================================================
config.php sets some variables I use over the whole site.

It happens to other scripts as well, but this frame construction makes it happen quite often (because of the refresh).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-08 00:48 UTC] sniper@php.net
Please try the latest snapshot from http://snaps.php.net/

--Jani
 [2000-11-27 08:49 UTC] sniper@php.net
No feedback -> consider fixed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 22:00:01 2026 UTC