note 41961 rejected from ref.session by nlopess

From: Date: Wed, 28 Apr 2004 16:00:19 +0000
Subject: note 41961 rejected from ref.session by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68961@lists.php.net to get a copy of this message
Note Submitter: setec@freemail.it ---- Hi, I report here an unknown behavior of the $_SESSION array discovered by Gabriele Palma (gabriele_palma ar tin dot it). If you try to use the | (pipe) char in the field name it doesn’t work as expected. <?php session_start (); print_r ($_SESSION); $_SESSION["neo|trinity"] = "matrix"; ?> The previous code, after the second refresh, returns: Array ( [neo] => [trinity] => matrix ) This behavior is caused by the | (pipe) char that is used as field separator when the save handler is “files”.

« previous php.notes (#68961) next »