php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28678 Loss of session data when viewing with IE 6
Submitted: 2004-06-07 20:15 UTC Modified: 2021-05-07 16:16 UTC
From: lthaete at secmgmt dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.6 OS: Fedora
Private report: No CVE-ID: None
 [2004-06-07 20:15 UTC] lthaete at secmgmt dot com
Description:
------------
Open the index page with IE (I was using version 6).
The page data on the page and in the sess_ file will match.
Now follow the link to page one the session data seen with
print_r will be correct, but the session data in the sess_ file
will have not changed.  It is because of the image tag with
no image entry.  Remove the image tag and refresh and the page
and the session file will match.  Now replace the image tag
and refresh the page the session file will revert to it origional 
value, the one stored from the index page even if you are on
page one.  This does not happen with netscape or mozilla.

Reproduce code:
---------------
--------------------- constants.php --------------------
<?
define("PAGE_INDEX", 0);
define("PAGE_ONE", 1);
define("ACTION_INDEX", 0);
define("ACTION_ONE", 1);
?>
-------------------- index.php --------------------------
<?
require "constants.php";
session_start();
$_SESSION["CURRENT_PAGE"]   = PAGE_INDEX;
$_SESSION["CURRENT_ACTION"] = ACTION_INDEX;
?>

<html>
<head>
<title>Session Error Index Page</title>
</head>
<body>
Session Error Index Page
<pre>
<? print_r($_SESSION); ?>
</pre>
<br>
<a href="one.php">Session Error Page One</a>
<br>
<img src="" border="0" width="1" height="1">
</body>
</html>
----------------- one.php ----------------------
<?
require "constants.php";
session_start();
$_SESSION["CURRENT_PAGE"]   = PAGE_ONE;
$_SESSION["CURRENT_ACTION"] = ACTION_ONE;
?>

<html>
<head>
<title>Session Error Page One</title>
</head>
<body>
Session Error Page One
<pre>
<? print_r($_SESSION); ?>
</pre>
<br>
<img src="" border="0" width="1" height="1">
</body>
</html>
------------------------------------------------

Expected result:
----------------
Session values in the session file are changed to match session data during script execution

Actual result:
--------------
Session file data does not change from origional values.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-08 09:41 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Known bugs in IE6.
 [2021-05-07 16:16 UTC] requinix@php.net
-Block user comment: No +Block user comment: Yes
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 03:01:29 2024 UTC