Re: how to get num of sessions vars?

From: Date: Fri, 13 Apr 2001 16:14:50 +0000
Subject: Re: how to get num of sessions vars?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-48464@lists.php.net to get a copy of this message
Thanks, another quick question. That works and I can access the variables still but this for ($x=0;$x<$s;$x++) { $tmp = $HTTP_SESSION_VARS[$x]; echo("<p>tmp=$tmp</p>\n"); } outputs tmp= ???? Why? How do I cycle through each session var and get its name and value? ""Keyur Kalaria"" <keyur@hyper-net.net> wrote in message news:006501c0c42e$ba839860$2d64a8c0@office... > Hey Dave, > > you can try the following: > > num = sizeof($HTTP_SESSION_VARS); > > > regards > keyur > > > ----- Original Message ----- > From: "phpman" <info@graphicon.nu> > To: <php-general@lists.php.net> > Sent: Friday, April 13, 2001 8:40 PM > Subject: [PHP] how to get num of sessions vars? > > > > I thought this would work.. > > > > $num = count($HTTP_SESSION_VARS); > > > > ..but it doesn't. I can access the session vars themselves, so I know > > they're there. Help. > > > > -Dave > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48464) next »