Re: HTTP_SESSION_VARS

From: Date: Wed, 01 Aug 2001 20:22:23 +0000
Subject: Re: HTTP_SESSION_VARS
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-60814@lists.php.net to get a copy of this message
> SORRY i just coppied it wrong > the actual code is capitalized > > while(list($k, $v) = each($HTTP_SESSION_VARS)) In that case, $HTTP_SESSION_VARS is not an array because you have no session variables yet... session_start(); session_register('foo'); $foo = 42; while (list($k, $v) = each($HTTP_SESSION_VARS)){ echo "$k ==&gt; $v<BR>\n"; } -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#60814) next »