Removing Session Data : unset « Data Type « PHP






Removing Session Data

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








Related examples in the same category

1.Deleting an object
2.void unset ( mixed var [, mixed var [, mixed ...]] )
3.Using the unset() Function
4.Removing Elements
5.Removing Elements from Arrays