note 41961 added to ref.session

From: Date: Tue, 27 Apr 2004 20:12:39 +0000
Subject: note 41961 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-68905@lists.php.net to get a copy of this message
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”. ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41961 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41961&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41961&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68905) next »