RE: [PHP] best way to use session vars?

From: Date: Mon, 20 Oct 2003 12:21:10 +0000
Subject: RE: [PHP] best way to use session vars?
Groups: php.general 
Request: Send a blank email to php-general+get-166742@lists.php.net to get a copy of this message
On 19 October 2003 13:00, David T-G wrote: > It seems to me that for a fast fix I could set $pw > and other > vars in my include file in place of registering them and then, later, > take my time to correctly switch over to $_POST['pw'] and > $_SESSION['pw'] everywhere. Does that sound like a good two-step > approach to > get all of > my code back up and running the soonest? Yes. There's even a PHP function to help with this quick-and-dirty solution -- extract($_SESSION) should do what you want (see http://www.php.net/extract). 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 (#166742) next »