Checking Session Data : Session Variables « Cookie Session « PHP






Checking Session Data

 
<?
    session_start( );

    if (isset($_SESSION['FirstName'])) {
            /// your code here
    }
?>
  
  








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.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