Though PHP automatically destroys a session after timeout or user has left the website. You may need to destroy certain variables, which purpose has been accomplished or a session completely in explicit way.
Syntax of destroying session variables
<?php
session_start();
if(isset($_SESSION[‘UserID’]))
unset($_SESSION['UserID']);
if(isset($_SESSION[‘name’]))
unset($_SESSION['name']);
?>