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