#40998 [Opn->Fbk]: The length of key of session limited
| From: | tony2001@php.net | Date: | Wed, 04 Apr 2007 19:04:38 +0000 |
| Subject: | #40998 [Opn->Fbk]: The length of key of session limited | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111117@lists.php.net to get a copy of this message | ||
ID: 40998
Updated by: tony2001@php.net
Reported By: jason dot polaris at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Windows XP
PHP Version: 4.4.5
New Comment:
What kind of session storage are you using?
Previous Comments:
------------------------------------------------------------------------
[2007-04-04 19:02:35] jason dot polaris at gmail dot com
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 this bug report at http://bugs.php.net/?id=40998&edit=1