Create session variable : Session Variables Create « Cookie Session « PHP






Create session variable

<?php

   session_start();

   $_SESSION['username'] = "Joe";

   echo "Your username is ".$_SESSION['username'].".";

?>


           
       








Related examples in the same category

1.Initiate session and create a few session variables