RE: [PHP] Re: Still trying to understand sessions?

From: Date: Thu, 24 Apr 2003 01:32:00 +0000
Subject: RE: [PHP] Re: Still trying to understand sessions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145106@lists.php.net to get a copy of this message
> Still confused. In my example below, formsave is an array which can > contain > multiple variables and can be access like $formsave['name'] for example, > but > from my understanding - $_SESSION['name'] only contains one variable - > name. > So in order to do the same thing as session_register using $_SESSION, > would > I have to use multiple instances? i.e.$_SESSION['name'] = "$POST['name'], > $_SESSION['email'] = "$POST['email'], etc. I just don't > understand the use > of each of these. From what I see session_register seems to be the better > option. $_SESSION['formsave'] = $formsave; echo $_SESSION['formsave']['name']; echo $_SESSION['formsave']['email']; etc... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#145106) next »