Re: Session_register ()

From: Date: Tue, 06 Aug 2002 01:45:00 +0000
Subject: Re: Session_register ()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111314@lists.php.net to get a copy of this message
Yeah, unless that variable (mysession) is an array, that won't work. You need to use foreach($GLOBALS as $ele) and your mysession variable should show up there as one of the items. Mike "Varsha Agarwal" <agarwal_varsha@yahoo.com> wrote in message news:20020805232641.62249.qmail@web40206.mail.yahoo.com... > Hi, > I am creating an array mysession, and trying to > register it with > Session_register("mysession"); > > But when I try to read that array using > foreach($GLOBALS['mysession'] as $ele) > { > } > > it gives me parse error as invalid argument for > foreach. > Can anyone tell me whats wrong with it? > > -Varsha > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - Feel better, live better > http://health.yahoo.com

« previous php.general (#111314) next »