From:             jason dot polaris at gmail dot com
Operating system: Windows XP
PHP version:      4.4.5
PHP Bug Type:     Session related
Bug description:  The length of key of session limited

Description:
------------
Currently I am trying to store a lot of data in the session (i.e. filename
and things related to that particular file)
However some filename(with full path) can be more than 300 characters, and
it is not stored if I use the path as a $_SESSION key.
Any key that contains less than 250 characters surely works well.

Reproduce code:
---------------
<?php
  session_start();
  $_SESSION['asdklfjsldfkjsldkfj(more than 300 chars)']['ABC'] = 1;

?>

Expected result:
----------------
When reloading (or redirect to another page that reads session)
$_SESSION['asdklfjsldfkjsldkfj(more than 300 chars)']['ABC'] will equals
to 1

Actual result:
--------------
The session array ($_SESSION['asdklfjsldfkjsldkfj(more than 300
chars)']['ABC']) is simply not set

-- 
Edit bug report at http://bugs.php.net/?id=40998&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40998&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40998&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40998&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40998&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40998&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40998&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40998&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40998&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40998&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40998&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40998&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40998&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40998&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40998&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40998&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40998&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40998&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40998&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40998&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40998&r=mysqlcfg

Reply via email to