#42135 [Opn->Csd]: Second call of session_start() causes creation of SID
| From: | iliaa@php.net | Date: | Sun, 29 Jul 2007 14:43:35 +0000 |
| Subject: | #42135 [Opn->Csd]: Second call of session_start() causes creation of SID | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115532@lists.php.net to get a copy of this message | ||
ID: 42135
Updated by: iliaa@php.net
Reported By: vrana@php.net
-Status: Open
+Status: Closed
Bug Type: Session related
Operating System: Irrelevant
PHP Version: 5.2.3
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-07-28 22:32:21] vrana@php.net
Description:
------------
PS(define_sid) = 1;
PS(send_cookie) = 1;
in session.c is before
if (PS(session_status) != php_session_none)
thus SID is created and cookie is sent uncoditionally in case of second
call of session_start().
Reproduce code:
---------------
session_start();
session_start();
echo SID;
Expected result:
----------------
Nothing in case of sent cookie.
Actual result:
--------------
PHPSESSID=...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42135&edit=1