#23570 [Opn->Bgs]: SID constant empty

From: Date: Wed, 14 May 2003 00:48:43 +0000
Subject: #23570 [Opn->Bgs]: SID constant empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39581@lists.php.net to get a copy of this message
ID: 23570 Updated by: sniper@php.net Reported By: garretrich at charter dot net -Status: Open +Status: Bogus Bug Type: Session related Operating System: Windows ME PHP Version: 4.3.1 New Comment: You need to read the manual once more: "Alternatively, you can use the constant SID which is always defined. If the client did not send an appropriate session cookie, it has the form session_name=session_id. Otherwise, it expands to an empty string. Thus, you can embed it unconditionally into URLs." Previous Comments: ------------------------------------------------------------------------ [2003-05-09 17:55:29] garretrich at charter dot net In all of my code since upgrading to 4.3.1, I am able to use $PHPSESSID but not SID on my Windows ME machine. Code: <?php error_reporting(E_ALL); session_start(); print "SID: " . SID . "<br>" . "\$PHPSESSID: " . $PHPSESSID; ?> Complete Browser Output: SID: $PHPSESSID: e9a1fa61bbadb3756cc06052625b5e40 returns no undefined constant notices. It seems that the SID constant is defined but empty. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23570&edit=1

« previous php.bugs (#39581) next »