php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22771 session_id(...) causes same cookie to be sent more than once
Submitted: 2003-03-18 12:20 UTC Modified: 2004-04-01 04:32 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: johannes dot hilpold at s-planet dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS: Windows XP SP1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: johannes dot hilpold at s-planet dot de
New email:
PHP Version: OS:

 

 [2003-03-18 12:20 UTC] johannes dot hilpold at s-planet dot de
The following seems not to be an important bug, but a little modification to PHP behaviour or some documentation on this could be useful:

If you use session_id("...") [ "..." means a normal SESSID] to force a special SESSID, session_start() will always(!) send the session cookie - even if the client sent the cookie with exactly this SESSID in the request.

Now the Problem:
================
--> At least IE6 will hang endless (looks as if still loading the page) when receiving an identical session cookie the third time.

The normal way:
===============
session_start() - without using session_id(...) before - will send the session cookie only if it was not received from the client. This is the behaviour one would expect and which should be implemented for the case using session_id(...) too.

Of course there is a workaround available:

if (!$_REQUEST['SESSID'] == "...")
    session_id("...");
session_start();


--> At least a hint in the manual should be included since this may also cause others to lose some hours for debugging their sript, as me. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-18 20:05 UTC] sniper@php.net
Not bug in PHP but just missing docs.

 [2004-04-01 04:32 UTC] irchtml@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC