session_destroy() example if else Example: php session destroy <?php // Destroy the currently active session. session_destroy(); ?>