|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-17 02:38 UTC] destes at ix dot netcom dot com
[2005-01-17 18:38 UTC] sniper@php.net
[2010-12-20 14:06 UTC] jani@php.net
-Package: Feature/Change Request
+Package: Session related
[2012-03-29 09:29 UTC] yohgaki@php.net
[2012-03-29 09:29 UTC] yohgaki@php.net
-Status: Assigned
+Status: Wont fix
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ According to the php manual, session_start() will register internal output handler for URL rewriting when trans-sid is enabled. Should session_destroy() and/or session_write_close() not unregister this handler? Reproduce code: --------------- <?php ini_set ('session.use_trans_sid','1'); session_start(); echo '<a href="index.php">a page</a>\n'; session_destroy(); echo '<a href="index.php">a page</a>'; ?> Expected result: ---------------- Only the link that was printed before session_destroy() should contain the session ID: <a href="index.php?PHPSESSID=2382309823823...">a page</a> <a href="index.php">a page</a> Actual result: -------------- Both URLs contain the session ID; <a href="index.php?PHPSESSID=2382309823823...">a page</a> <a href="index.php?PHPSESSID=2382309823823...">a page</a>