#32065 [Bgs->Opn]: session_start() ALWAYS makes a new session
| From: | mikegmarshall at hotmail dot com | Date: | Thu, 24 Feb 2005 16:51:04 +0000 |
| Subject: | #32065 [Bgs->Opn]: session_start() ALWAYS makes a new session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74512@lists.php.net to get a copy of this message | ||
ID: 32065
User updated by: mikegmarshall at hotmail dot com
Reported By: mikegmarshall at hotmail dot com
-Status: Bogus
+Status: Open
Bug Type: IIS related
Operating System: Windows 2000 IIS5
PHP Version: 5.0.3
New Comment:
Very strange. As I reported, Windows Update seemed to fix it, but only
temporarily. Its now happening again, same script, same setup.
Searching the web, I have found other reports of identical problems,
but not enough to suggest that this applies to all instances of PHP on
IIS5. This leads me to think its an IIS5 config problem, tho I can't
for the life of me think what. Any pointers?
Previous Comments:
------------------------------------------------------------------------
[2005-02-22 17:26:23] tony2001@php.net
We mark such reports as bogus.
------------------------------------------------------------------------
[2005-02-22 16:17:09] mikegmarshall at hotmail dot com
I am a very experienced IT Support/Software Engineer...I spend all day
telling people to "get the latest updates"...you would think I would
listen to my own advice wouldn't ya :)
I did all the updates at windowsupdate.com - no idea which one fixed
it, but there were about 15. One of them did it.
*hangs head in shame*
------------------------------------------------------------------------
[2005-02-22 15:06:34] mikegmarshall at hotmail dot com
Description:
------------
When I call session_start() with IIS5, it always creates a new
session.
I have 2 servers - both with PHP 5.0.3, one with IIS 5 and one with
IIS6. php.ini is identical in both (i.e. copied from one to the other).
On the IIS6 machine, the SID echoed never changes if I press refresh. On
the IIS5 machine it generates a new SID every 1-2 mins of inactivity.
I have not yet found a suitable workaround.
Reproduce code:
---------------
<? session_start();
echo $session_id;
?>
Wait 60 secs or so and press refresh - the SID changes.
Expected result:
----------------
The sessionid that is echoed should remain the same.
Actual result:
--------------
The SID changes.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32065&edit=1