Adding Session Data : Session Variables « Cookie Session « PHP






Adding Session Data

 
<?
    $_SESSION['var'] = $val;
    $_SESSION['FirstName'] = "Jim";
?>
  
  








Related examples in the same category

1.A session variable can be destroyed with a call to session_unregister().
2.Accessing Session Variables
3.Checking Session Data
4.Reading Session Data
5.Registering Variables with a Session
6.Registering an Array Variable with a Session
7.Storing Complex Data Types in Sessions
8.Storing Complex Data Types to session
9.Storing Simple Data Types in Sessions