ID:               37407
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bugs at satellitecreative dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: XP Pro + IE 7 beta 2
 PHP Version:      5.1.4
 New Comment:

There is no PHP in the browser.
PHP is serverside language.


Previous Comments:
------------------------------------------------------------------------

[2006-05-11 13:31:55] 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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37407&edit=1

Reply via email to