From:             bugs at satellitecreative dot com
Operating system: XP Pro + IE 7 beta 2
PHP version:      5.1.4
PHP Bug Type:     Session related
Bug description:  Page reloaded automatically (in background)

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 bug report at http://bugs.php.net/?id=37407&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37407&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37407&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37407&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37407&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37407&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37407&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37407&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37407&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37407&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37407&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37407&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37407&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37407&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37407&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37407&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37407&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37407&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37407&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37407&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37407&r=mysqlcfg

Reply via email to