Ending a Session : session_destroy « Cookie Session « PHP






Ending a Session

 
<?
    session_start( );
    $_SESSION = array( );
    session_destroy( );
?>
  
  








Related examples in the same category

1.Destroying a session
2.function session_destroy() ends all persistent data corresponding to the current user session.