php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6165 Session ID appears twice in the URL when using SID
Submitted: 2000-08-15 09:25 UTC Modified: 2000-08-15 11:03 UTC
From: saempylae at hotmail dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.1pl2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: saempylae at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-08-15 09:25 UTC] saempylae at hotmail dot com
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">

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 09:32 UTC] saempylae at hotmail dot com
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=c83d394a4abf9bee89571af1cb5bdcc8&amp;Foobar=c83d394a4abf9bee89571af1cb5bdcc8">


 [2000-08-15 11:03 UTC] hholzgra@php.net
fixed in cvs
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 00:01:27 2025 UTC