PHP 4.0 Bug #6165: Session ID appears twice in the URL when using SID

From: Date: Tue, 15 Aug 2000 13:25:49 +0000
Subject: PHP 4.0 Bug #6165: Session ID appears twice in the URL when using SID
Groups: php.dev 
Request: Send a blank email to php-dev+get-28917@lists.php.net to get a copy of this message
From: saempylae@hotmail.com Operating system: Linux PHP version: 4.0.1pl2 PHP Bug Type: Session related Bug description: Session ID appears twice in the URL when using SID This might be considered cosmetic but anyways... When using the SID constant in the URL, with cookies disabled in the browser, like so: print("<a href=\"foo.php?" . SID . "\">"); the session ID appears twice in the URL, like so: <a href="foo.php?Foobar=c83d394a4abf9bee89571af1cb5bdcc8&Foobar=c83d394a4abf9bee89571af1cb5bdcc8"> I don't know if this contributes to the bug, but obviously I've also called session_name("Foobar"); before using SID. Also, the ampersand in the URL is not valid HTML; the URL should read <a href="foo.php?Foobar=c83d394a4abf9bee78571af1cb5bdcc8&amp;Foobar=c83d394a4abf9bee78571af1cb5bdcc8">

« previous php.dev (#28917) next »