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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 00:01:31 2024 UTC