php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37407 Page reloaded automatically (in background)
Submitted: 2006-05-11 13:31 UTC Modified: 2006-05-11 14:03 UTC
From: bugs at satellitecreative dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.1.4 OS: XP Pro + IE 7 beta 2
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: bugs at satellitecreative dot com
New email:
PHP Version: OS:

 

 [2006-05-11 13:31 UTC] bugs at satellitecreative dot com
Description:
------------
In IE7 beta 2 (so presumably the final article too?) a page/script with a call to $_SESSION to add/update/set a value in the session is reloaded/re-run/duplicated after a delay of between 5 and 25 seconds somehow (depending on environment).

No idea if this is an IE, PHP or (me) issue, but got to start somewhere :) Its totally broken my ordering system app I've been developing.. back to drawing board!

Reproduce code:
---------------
page one (index.php):

<? session_start();
$_SESSION['debug']['testpage'][] = date("ymd\-H:i:s");
echo '<a href="checksession.php">check session</a>'; ?>

page two (checksession.php):

<? session_start();
echo '<pre>';
print_r($_SESSION['debug']);
echo '</pre>'; ?>

Expected result:
----------------
Page one should write a date/time stamp to the stored session array $_SESSION['debug']['testpage'], once only!

When 'check session' is clicked you expect to be shown:

Array
(
    [testpage] => Array
        (
            [0] => yymmdd-hh:mm:ss
        )

)

Actual result:
--------------
When you view checksession.php in any browser besides IE7b2 you DO see:

Array
(
    [testpage] => Array
        (
            [0] => yymmdd-hh:mm:ss
        )

)

BUT if you've waited more than about 10 seconds or so (or you've refreshed) you'll see:

Array
(
    [testpage] => Array
        (
            [0] => yymmdd-hh:mm:ss
            [1] => yymmdd-hh:mm:ss
        )

)

Therefore TWO writes to session when only one was requested.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-11 13:47 UTC] tony2001@php.net
There is no PHP in the browser.
PHP is serverside language.
 [2006-05-11 14:03 UTC] bugs at satellitecreative dot com
Oh ok, dammit I thought you were going to say something like that. Sorry for wasting your time, I'll go and bark up the Microsoft tree!

Ben
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 14:01:30 2024 UTC