ID: 27688
Updated by: [EMAIL PROTECTED]
Reported By: ryan at daelibs dot com dot au
Status: Open
-Bug Type: Documentation problem
+Bug Type: Session related
Operating System: Redhat 9
PHP Version: 5.0.0RC1
New Comment:
Confirmed.
Is this really a doc issue?
Previous Comments:
------------------------------------------------------------------------
[2004-03-25 00:00:26] ryan at daelibs dot com dot au
Description:
------------
When you use a session name that has only numbers, each call to
session_start seems to regenerate a new session id, so the session does
not persist.
The code below can be loaded and refreshed to reproduce the behaviour
Reproduce code:
---------------
<?php
//This name works
//session_name('A9');
//This name doesn't
session_name('99');
session_start();
echo 'Session Name: '.session_name().'<br />';
echo 'Session Id: '.session_id().'<br />';
?>
Expected result:
----------------
Session Name: 99
Session Id: {{a sid that remains the same between each refresh }}
Actual result:
--------------
Session Name: 99
Session Id: {{a different sid each refresh}}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27688&edit=1