|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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&Foobar=c83d394a4abf9bee78571af1cb5bdcc8">
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
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&Foobar=c83d394a4abf9bee89571af1cb5bdcc8">