PHP 4.0 Bug #7571 Updated: Document contains no data with session
| From: | sniper@php.net | Date: | Mon, 27 Nov 2000 13:49:43 +0000 |
| Subject: | PHP 4.0 Bug #7571 Updated: Document contains no data with session | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39257@lists.php.net to get a copy of this message | ||
ID: 7571
Updated by: sniper
Reported By: jannis@gmx.it
Status: Closed
Bug Type: *Session related
Assigned To:
Comments:
No feedback -> consider fixed.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-08 00:48:14] sniper@php.net
Please try the latest snapshot from http://snaps.php.net/
--Jani
---------------------------------------------------------------------------
[2000-11-01 12:50:36] jannis@gmx.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).
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7571