Reading Session Data : Session Variables « Cookie Session « PHP






Reading Session Data

 
<?
    $_SESSION['foo'] = 'bar';
    print $_SESSION['foo'];
?>
  
  








Related examples in the same category

1.A session variable can be destroyed with a call to session_unregister().
2.Accessing Session Variables
3.Adding Session Data
4.Checking 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