|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-16 10:24 UTC] tony2001@php.net
[2005-11-16 15:49 UTC] gandalf at flock dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 01:00:01 2025 UTC |
Description: ------------ As mentioned in bugs 1988 and 16389 when you set up session.auto_start=true, then you can't play with session_name. It's ok. But if so, then session_name() should return the REAL name, not the false one. It's totally misleading to accept session name change (without an Exception). Reproduce code: --------------- 1) Set session.auto_start=true in php.ini 2) <?php session_name('foo'); session_start(); print('Session name: '.session_name()); ?> Expected result: ---------------- Session name: PHPSESSID Actual result: -------------- Session name: foo 'session_name()' should give the real session cookie name.