|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2017-07-10 15:18 UTC] requinix@php.net
-Status: Open
+Status: Verified
[2017-07-10 15:18 UTC] requinix@php.net
[2017-07-11 18:54 UTC] andrew dot nester dot dev at gmail dot com
[2017-07-18 19:23 UTC] nikic@php.net
[2017-07-18 19:23 UTC] nikic@php.net
-Status: Verified
+Status: Closed
[2018-03-23 08:17 UTC] requinix@php.net
-Status: Closed
+Status: Re-Opened
[2018-03-23 08:17 UTC] requinix@php.net
[2018-03-25 22:01 UTC] cmb@php.net
[2018-04-12 15:52 UTC] cmb@php.net
[2018-04-12 15:52 UTC] cmb@php.net
-Status: Re-Opened
+Status: Closed
[2018-04-12 15:57 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ When there is a URL that starts with "#" in an anchor tag, PHP 7.1.1 still adds the PHPSESSID parameter like this: <p><a href="index.php?PHPSESSID=a17309afea8f2791078fc046cce5fa56">Click This Anchor Tag!</a></p> <p><a href="#place/?PHPSESSID=a17309afea8f2791078fc046cce5fa56">Internal link</a></p> <p>Our Session ID is: a17309afea8f2791078fc046cce5fa56</p> <p>Our PHP Version is: 7.1.1</p> Test script: --------------- <?php ini_set('session.use_cookies', '0'); ini_set('session.use_only_cookies',0); ini_set('session.use_trans_sid',1); session_start(); ?> <p><a href="index.php">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p>Our Session ID is: <?= session_id() ?></p> <p>Our PHP Version is: <?= phpversion() ?></p> Expected result: ---------------- <p><a href="index.php?PHPSESSID=aec2a7538bfe295d6a6c9ff70c42f8eb">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p>Our Session ID is: aec2a7538bfe295d6a6c9ff70c42f8eb</p> <p>Our PHP Version is: 5.6.28</p> This is the output from the script on 5.6.28. Note that '#place" does not get the session applied. Actual result: -------------- <p><a href="index.php?PHPSESSID=a17309afea8f2791078fc046cce5fa56">Click This Anchor Tag!</a></p> <p><a href="#place/?PHPSESSID=a17309afea8f2791078fc046cce5fa56">Internal link</a></p> <p>Our Session ID is: a17309afea8f2791078fc046cce5fa56</p> <p>Our PHP Version is: 7.1.1</p> This is the output from 7.1.1 (sorry I don't have easy access to 7.1.7)