how to know when session is destroyed in php code example Example: php session destroy <?php // Destroy the currently active session. session_destroy(); ?>