From: ryan at daelibs dot com dot au
Operating system: Redhat 9
PHP version: 5.0.0RC1
PHP Bug Type: Session related
Bug description: Session names consisting of only numbers cause session id generation
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 bug report at http://bugs.php.net/?id=27688&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27688&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27688&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27688&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27688&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27688&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27688&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27688&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27688&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27688&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27688&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27688&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27688&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27688&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27688&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27688&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27688&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27688&r=float