php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17145 SID constant is not set.
Submitted: 2002-05-10 15:17 UTC Modified: 2002-05-10 15:29 UTC
From: jlhaase at iland dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.2.0 OS: Linux (Redhat 7.2)
Private report: No CVE-ID: None
 [2002-05-10 15:17 UTC] jlhaase at iland dot net
Since updating php to 4.2.0 from 4.1.2 it seems that the SID constant is no longer set when the session ID is not propogated via cookie.  I have session cookies completely disabled and have php compiled with --transparent-sid enabled.  The transparent sid seems to work fine, as the PHPSESSID=blah is properly added to all uri etc within the pages.  However in the specific case of using a Location: header through the header() function it is necessary to manually append the session id, In the past I had always done this through the use of the SID constant.  The SID constant however is apparently no longer being set resulting in my session not being set correctly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-10 15:28 UTC] sander@php.net
This bug has already been fixed in the latest released version of
PHP, which you can download at http://www.php.net/downloads.php
 [2002-05-10 15:29 UTC] sander@php.net
Not completely true, it has been fixed in 4.2.1 which will be released monday.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 02:00:03 2025 UTC