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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 13:01:30 2024 UTC