Destroy a PHP Session

To remove all global session variables and destroy the session, use session_unset() and session_destroy():

Array ( )
All session variables are now removed, and the session is destroyed.