ID: 35233
Updated by: [EMAIL PROTECTED]
Reported By: gandalf at flock dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: *
PHP Version: 5.0.5
New Comment:
Why is that a bug?
session_name() *does* change the session name, but it's too late,
because session has already been started.
So the session_name() behaviour is correct.
Previous Comments:
------------------------------------------------------------------------
[2005-11-16 04:50:54] gandalf at flock dot com
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35233&edit=1