#32065 [Opn->Csd]: session_start() ALWAYS makes a new session
| From: | mikegmarshall at hotmail dot com | Date: | Tue, 22 Feb 2005 15:17:10 +0000 |
| Subject: | #32065 [Opn->Csd]: session_start() ALWAYS makes a new session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74426@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: Open
+Status: Closed
Bug Type: IIS related
Operating System: Windows 2000 IIS5
PHP Version: 5.0.3
New Comment:
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*
Previous Comments:
------------------------------------------------------------------------
[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