|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-11 13:47 UTC] tony2001@php.net
[2006-05-11 14:03 UTC] bugs at satellitecreative dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 17:00:01 2025 UTC |
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.