RE: [PHP] registering $_REQUEST variables as session variables.

From: Date: Wed, 13 Mar 2002 16:16:01 +0000
Subject: RE: [PHP] registering $_REQUEST variables as session variables.
Groups: php.general 
Request: Send a blank email to php-general+get-88361@lists.php.net to get a copy of this message
> -----Original Message----- > From: Gonzalez, Zara E [mailto:gonzalze@mail.slh.wisc.edu] > Sent: 11 March 2002 17:54 > > I was just wondering if anyone knew an easy way to register > all $_REQUEST > variables as session variables. I haven't seen this solution on the list, but what about: foreach ($_REQUEST as $key=>$val): $_SESSION[$key] = $val; endforeach; Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#88361) next »