$_SESSION only takes 1 character?

From: Date: Tue, 01 Oct 2002 14:13:14 +0000
Subject: $_SESSION only takes 1 character?
Groups: php.general 
Request: Send a blank email to php-general+get-118370@lists.php.net to get a copy of this message
Hi there, I've got some strange behaviour here (at least, I can't explain it). I'm running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my little app and want to use the $_SESSION-variable to keep track of all my variabeles. Well, when I tell it $_SESSION["something-intelligent"] = $myName; echo($_SESSION["something-intelligent"]); I get "Tim" on my screen. But when I do: $nr = 12; $_SESSION["things"]["$nr"]["intelligent"] = $myName; echo $_SESSION["things"]["$nr"]["intelligent"]; I don't get any output at all! Can anyone shed any light on this? Thanks in advance!! -- Kind regards, Tim

« previous php.general (#118370) next »