Thanks. Below is what I changed to session.php.
Are there any possible problems with my changes?
On Mar 23, 2004, at 4:28 PM, Justin Patrin wrote:
<? /***********Session.php**********/ $varcount = 0; if($name) { $varcount++; } if($number){ $varcount++; } session_start(); session_register("name"); session_register("number"); ?>
<? /***********Session.php**********/ $varcount = 0; if($name) { $varcount++; } if($number){ $varcount++; } $_SESSION["name"] = $name; $_SESSION["number"] = $number; ?>
You may also want to start using $_POST, $_GET, or $_REQUEST as they're generally more secure than using globals. For instance, change it to this:
<? /***********Session.php**********/ $varcount = 0; if($_POST['name']) { $varcount++; } if($_POST['number']){ $varcount++; } $_SESSION['name'] = $name; $_SESSION['number'] = $number; ?>
-- paperCrane <Justin Patrin>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php