php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37859 Duplicated server requests caused by session_start
Submitted: 2006-06-20 10:46 UTC Modified: 2006-06-20 12:17 UTC
From: peter at evident dot si Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.1.2.2 OS: Win XP
Private report: No CVE-ID: None
 [2006-06-20 10:46 UTC] peter at evident dot si
Description:
------------
I noticed that someone already reported this as a bug in May but it was not investigated and closed as bogus.

As this definately is some strange issue between IE7 and PHP I am opening this again.

It all comes down to the session: session_start().
Using simple example bellow and IE7 beta as client you will notice that apache server logs two client requests (original one and 5 sec duplicated one).

Can't image what the relation is but this is the case.
OS is Win XP running Apache 2 and PHP 5.1.2.2
No other browser client including IE6 or older causes this.

Please look into this since it can cause serious problems.



Reproduce code:
---------------
I worked the problem down to the session_start() which is causing this.

Please try this simple example:

<?php session_start(); ?>
<html>
<body>
<h1>Hello World!</h1>
</body>
</html>

Using IE7 beta and PHP5.1.2.2 (Windows XP, Apache 2) makes a duplicated call 5 sec later (see apache logs).

Removing session_start() makes no duplicates.
Using any other browser including IE6 or previous makes no duplicates as well.

Please look into this. There must be some strange connection between ie7 and php (5 or maybe others - didn't try) that makes session behave strangely.

If you need any additional info I will gladly help.


Expected result:
----------------
No fantom calls using IE7 / PHP.

Actual result:
--------------
With session_start() duplicated fantom calls are loged in apache logs. Without session_start() and any other browser then IE7 no duplicates.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-20 11:32 UTC] tony2001@php.net
Does it happen with some more reliable browser than IE7 beta?
 [2006-06-20 11:57 UTC] peter at evident dot si
Not to my knowledge.
I tried Mozzila/FireFox, IE6, IE5.5 and it was ok.
I heard someone that it works ok with IE7 beta/IIS/PHP 5.1.4 custom build, but I can't say for sure.

I will try to upgrade to the latest version 5.1.4 my self and will report as soon as I get some results.

I also posted this at MS IE7 feedback site, but didn't get any response yet.
 [2006-06-20 12:01 UTC] tony2001@php.net
>I tried Mozzila/FireFox, IE6, IE5.5 and it was ok.
Then I can hardly believe it is PHP problem, please report it to M$.
 [2006-06-20 12:17 UTC] peter at evident dot si
I will, I am, but what makes a confusion is that it works it any other way except when using sessions (session_start()). Where is connection here?

I am sorry, I am not expert for this but there must be some connection between PHP session methods and IE7 behaving badly.
How can PHP session_start() cause this?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 14:01:33 2025 UTC