Sessions with register_globals on or off in session_test.php : session_start « Cookie Session « PHP






Sessions with register_globals on or off in session_test.php

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








Related examples in the same category

1.
2.Encode all session data into a single string and return the result
3.Session running
4.Session starter
5.session_start() checks to see if a session has started, and if not, it starts one.