Learning PHP and MySQL

Example 14-5 Sessions with register_globals on or off in session_test.php

<?php session_start();
if  (isset(
$username))  {
echo  "Hello  $username";
}  else  {
echo  "Please  login.";
}
?>

Posted by on 09/25 at 02:41 PM

Next entry: Example 14-7 Detecting simple variable poisoning

Previous entry: Example 14-4 Not initializing a variable was a hole in sample.php

<< Back to main